Commit cfa4f4459654e08a8826491468b8ce5a899fc197

Authored by liujiqiang
1 parent cfc61f51

更新

Showing 2 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@ def Create_Testcase_suite(): @@ -37,7 +37,7 @@ def Create_Testcase_suite():
37 def Run_Testcase(testsuit): 37 def Run_Testcase(testsuit):
38 '''运行测试用例并生成报告''' 38 '''运行测试用例并生成报告'''
39 now = time.strftime("%Y-%m-%d %H_%M_%S", time.localtime()) 39 now = time.strftime("%Y-%m-%d %H_%M_%S", time.localtime())
40 - path = os.path.dirname(__file__) 40 + path = os.path.dirname(os.path.abspath(__file__))
41 report_file = os.path.abspath(os.path.join(path))+ "/report/" + now + "_result.html" 41 report_file = os.path.abspath(os.path.join(path))+ "/report/" + now + "_result.html"
42 # 创建报告文件 42 # 创建报告文件
43 fp = open(report_file, 'wb') 43 fp = open(report_file, 'wb')
report/test.log
1 -[2021-07-21 10:39:13] [INFO] : 发送邮件  
2 -[2021-07-21 10:39:15] [INFO] : 邮件发送完毕 1 +[2021-07-21 10:44:41] [INFO] : 发送邮件
  2 +[2021-07-21 10:44:43] [INFO] : 邮件发送完毕