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 | 38 | '''运行测试用例并生成报告''' |
39 | 39 | now = time.strftime("%Y-%m-%d %H_%M_%S", time.localtime()) |
40 | 40 | path = os.path.dirname(os.path.abspath(sys.argv[0])) |
41 | + print("path -1- ",path) | |
41 | 42 | report_file = os.path.abspath(os.path.join(path))+ "/report/" + now + "_result.html" |
42 | 43 | # 创建报告文件 |
43 | 44 | fp = open(report_file, 'wb') |
... | ... | @@ -50,6 +51,7 @@ def Run_Testcase(testsuit): |
50 | 51 | runner.run(testsuit) |
51 | 52 | # 关闭文件 |
52 | 53 | fp.close() |
54 | + print("path -1- ", path) | |
53 | 55 | delReport.delReport(path) |
54 | 56 | return report_file |
55 | 57 | ... | ... |