Commit ca54aa7cb8f02a12ddffde6e3d82593c5d61e50a

Authored by liujiqiang
1 parent d52190a4

更新

testCase/main.py renamed to main.py
... ... @@ -37,7 +37,7 @@ def Run_Testcase(testsuit):
37 37 '''运行测试用例并生成报告'''
38 38 now = time.strftime("%Y-%m-%d %H_%M_%S", time.localtime())
39 39 path = os.path.dirname(os.path.abspath(sys.argv[0]))
40   - report_file = os.path.abspath(os.path.join(path, "../"))+ "/report/" + now + "_result.html"
  40 + report_file = os.path.abspath(os.path.join(path, "/")) + "/report/" + now + "_result.html"
41 41 # 创建报告文件
42 42 fp = open(report_file, 'wb')
43 43  
... ...
report/test.log
1   -[2021-07-19 10:43:38] [INFO] : 发送邮件
2   -[2021-07-19 10:43:41] [INFO] : 邮件发送完毕