self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
defreset_TsData(self):
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"log"inself.conf["artifact"]:
self.m.logInfo("log rotate in "+self.name)
if"db"inself.conf["artifact"]:
self.m.logInfo("delete db-content "+self.name)
if"lob"inself.conf["artifact"]:
self.m.logInfo("lob is deleted with db "+self.name)
if"file"inself.conf["artifact"]:
self.m.logInfo("rm files in "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
defload_TsData(self,testdata):
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"testdata"inself.conf:
ifself.conf["testdata"]=="db":
self.m.logInfo("insert db-content "+self.name)
self.m.setMsg("data loaded for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
defread_TsData(self):
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"db"inself.conf["artifact"]:
self.m.logInfo("select db-content "+self.name)
if"lob"inself.conf["artifact"]:
self.m.logInfo("check lob if is deleted with db "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
definit_Testcase(self):
"""
mainmethodeforsystem-preparation
:paramself:
:return:
"""
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.logInfo("something in "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
defreset_TcData(self):
defrun(self):
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"log"inself.conf["artifact"]:
self.m.logInfo("log rotate in "+self.name)
if"db"inself.conf["artifact"]:
self.m.logInfo("delete db-content "+self.name)
if"lob"inself.conf["artifact"]:
self.m.logInfo("lob is deleted with db "+self.name)
if"file"inself.conf["artifact"]:
self.m.logInfo("rm files in "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
ifjob.program=="check_environment":
self.check_Instance()
elifjob.program=="init_testset":
self.prepare_system("testset")
elifjob.program=="init_testcase":
self.prepare_system("testcase")
elifjob.program=="test_system":
self.test_System("test")
elifjob.program=="test_system":
self.test_System("test")
elifjob.program=="finish_testcase":
self.finish_Test("test")
elifjob.program=="finish_testset":
self.finish_Test("test")
defload_TcData(self):
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"testdata"inself.conf:
ifself.conf["testdata"]=="db":
self.m.logInfo("insert db-content "+self.name)
self.m.setMsg("data loaded for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
defread_TcData(self):
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"db"inself.conf["artifact"]:
self.m.logInfo("select db-content "+self.name)
if"lob"inself.conf["artifact"]:
self.m.logInfo("check lob if is deleted with db "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
deftest_system(self):
"""
:return:
"""
pass
defspiele_ein(self):
pass
deferzeuge_Anfrage(self):
pass
defsende_Anfrage(self,testdata):
pass
deflese_Antwort(self):
pass
deffinish_Testcase(self):
"""
initialization-routineforfinish-step
:return:
"""
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.logInfo("something in "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"log"inself.conf["artifact"]:
self.m.logInfo("log rotate in "+self.name)
if"db"inself.conf["artifact"]:
self.m.logInfo("delete db-content "+self.name)
if"lob"inself.conf["artifact"]:
self.m.logInfo("lob is deleted with db "+self.name)
if"file"inself.conf["artifact"]:
self.m.logInfo("rm files in "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"testdata"inself.conf:
ifself.conf["testdata"]=="db":
self.m.logInfo("insert db-content "+self.name)
self.m.setMsg("data loaded for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
defread_TData(self,granularity):
"""
:paramgranularity:
:return:
"""
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
if"db"inself.conf["artifact"]:
self.m.logInfo("select db-content "+self.name)
if"lob"inself.conf["artifact"]:
self.m.logInfo("check lob if is deleted with db "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logDebug(verify,"--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
deftest_System(self,granularity):
"""
:paramgranularity:
:return:
"""
defcreate_Request(self,granularity):
pass
defsend_Request(self,granularity):
pass
defget_Response(self,granularity):
pass
deffinish_Test(self,granularity):
"""
initialization-routineforfinish-step
:return:
"""
job=ulrich.program.Job.getInstance()
verify=-1+job.getDebugLevel(self.name)
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() started at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())
self.m.logInfo("something in "+self.name)
self.m.setMsg("checkInstance for "+self.name+" is OK")
self.m.logInfo("--- "+str(inspect.currentframe().f_code.co_name)+"() finished at "+datetime.now().strftime("%Y%m%d_%H%M%S")+" for "+str(self.name).upper())