#!/usr/bin/python # program to declare new exceptions from actual results # PARAM from INPUT: --testcase/testsuite # main functions # + input_param() : cache-actjob --> user-input --> local-param # + start_job() : local-param --> cache-actjob --> start-param # --------------------------------------------------- import sys# # import jsonpickle # pip install jsonpickle import yaml # pip install pyyaml import basic.program as program from basic.componentHandling import ComponentManager import basic.message as message # Press Umschalt+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. # Press the green button in the gutter to run the script. if __name__ == '__main__': x = program.Job("check_environment") #m = message.Message(3) #m.closeMessage() x.startJob() x.m.logInfo("hier eine LogInfo") x.m.logDebug("hier eine DbugMeldung") x.m.logDebug(str(vars(x.par)) + "\n" + str(vars(x.conf))) cm = ComponentManager.getInstance(x) if x.m.isRc("fatal"): x.stopJob() exit(x.m.rc * (-1) + 3) x.stopJob() # See PyCharm help at https://www.jetbrains.com/help/pycharm/