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,6 +10,7 @@ from discover import DiscoveringTestLoader | ||
10 | from commons import SendEmail as em | 10 | from commons import SendEmail as em |
11 | from commons import common as com | 11 | from commons import common as com |
12 | from commons.MySession import my | 12 | from commons.MySession import my |
13 | +from commons.scripts import delReport | ||
13 | 14 | ||
14 | def Create_Testcase_suite(): | 15 | def Create_Testcase_suite(): |
15 | '''创建测试套件''' | 16 | '''创建测试套件''' |
@@ -40,6 +41,7 @@ def Run_Testcase(testsuit): | @@ -40,6 +41,7 @@ def Run_Testcase(testsuit): | ||
40 | runner.run(testsuit) | 41 | runner.run(testsuit) |
41 | #关闭文件 | 42 | #关闭文件 |
42 | fp.close() | 43 | fp.close() |
44 | + delReport.delReport(path) | ||
43 | return report_file | 45 | return report_file |
44 | 46 | ||
45 | def Send_email(filename): | 47 | def Send_email(filename): |