Commit 7a5a3ad313caac0de313b23a27b79b2078e7b816
1 parent
f2a8c7c5
支持方法跟新
Showing
1 changed file
with
2 additions
and
0 deletions
main.py
... | ... | @@ -10,6 +10,7 @@ from discover import DiscoveringTestLoader |
10 | 10 | from commons import SendEmail as em |
11 | 11 | from commons import common as com |
12 | 12 | from commons.MySession import my |
13 | +from commons.scripts import delReport | |
13 | 14 | |
14 | 15 | def Create_Testcase_suite(): |
15 | 16 | '''创建测试套件''' |
... | ... | @@ -40,6 +41,7 @@ def Run_Testcase(testsuit): |
40 | 41 | runner.run(testsuit) |
41 | 42 | #关闭文件 |
42 | 43 | fp.close() |
44 | + delReport.delReport(path) | |
43 | 45 | return report_file |
44 | 46 | |
45 | 47 | def Send_email(filename): | ... | ... |