Commit cfa4f4459654e08a8826491468b8ce5a899fc197
1 parent
cfc61f51
更新
Showing
2 changed files
with
3 additions
and
3 deletions
main.py
... | ... | @@ -37,7 +37,7 @@ def Create_Testcase_suite(): |
37 | 37 | def Run_Testcase(testsuit): |
38 | 38 | '''运行测试用例并生成报告''' |
39 | 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 | 41 | report_file = os.path.abspath(os.path.join(path))+ "/report/" + now + "_result.html" |
42 | 42 | # 创建报告文件 |
43 | 43 | fp = open(report_file, 'wb') | ... | ... |
report/test.log