Commit 745ca6b7ec04a20c1828993a459e8974d8e13d0a
1 parent
ca54aa7c
更新
Showing
2 changed files
with
3 additions
and
1 deletions
report/test.log
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 | ... | ... |