def Result_Analyzer(sTestStepReturnStatus,temp_q):
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
try:
if sTestStepReturnStatus in passed_tag_list:
temp_q.put("passed")
return "passed"
elif sTestStepReturnStatus in failed_tag_list:
temp_q.put("failed")
return "failed"
elif sTestStepReturnStatus in skipped_tag_list:
temp_q.put("skipped")
return "skipped"
elif sTestStepReturnStatus.lower() == 'cancelled': # Special use to stop a scheduled run without failing it
temp_q.put("cancelled")
return "cancelled"
else:
ExecLog(sModuleInfo,"Step return type unknown: %s. The last function did not return a valid type (passed/failed/etc)" %(sTestStepReturnStatus),3)
temp_q.put("failed")
return "failed"
except Exception, e:
return Exception_Handler(sys.exc_info())
CommonUtil.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录