Commit 7239ccfd02b103e88207eb464f22c5f79ae6d1cc
1 parent
608d7336
增加日志
Showing
1 changed file
with
2 additions
and
0 deletions
main.py
@@ -38,6 +38,7 @@ def Run_Testcase(testsuit): | @@ -38,6 +38,7 @@ 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(os.path.abspath(sys.argv[0])) | 40 | path = os.path.dirname(os.path.abspath(sys.argv[0])) |
41 | + print("path -1- ",path) | ||
41 | report_file = os.path.abspath(os.path.join(path))+ "/report/" + now + "_result.html" | 42 | report_file = os.path.abspath(os.path.join(path))+ "/report/" + now + "_result.html" |
42 | # 创建报告文件 | 43 | # 创建报告文件 |
43 | fp = open(report_file, 'wb') | 44 | fp = open(report_file, 'wb') |
@@ -50,6 +51,7 @@ def Run_Testcase(testsuit): | @@ -50,6 +51,7 @@ def Run_Testcase(testsuit): | ||
50 | runner.run(testsuit) | 51 | runner.run(testsuit) |
51 | # 关闭文件 | 52 | # 关闭文件 |
52 | fp.close() | 53 | fp.close() |
54 | + print("path -1- ", path) | ||
53 | delReport.delReport(path) | 55 | delReport.delReport(path) |
54 | return report_file | 56 | return report_file |
55 | 57 |