Commit 745ca6b7ec04a20c1828993a459e8974d8e13d0a

Authored by liujiqiang
1 parent ca54aa7c

更新

report/test.log
  1 +[2021-07-19 11:09:31] [INFO] : 发送邮件
  2 +[2021-07-19 11:09:33] [INFO] : 邮件发送完毕
... ...
main.py renamed to testCase/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  
... ...