import unittest
from HTMLTestReportCN import HTMLTestRunner
from Case.login import Login
#suite=unittest.TestSuite()
suite=unittest.TestLoader().loadTestsFromTestCase(Login)
f=open("result.html","wb")
HTMLTestRunner(stream=f,title="登录测试报告",description="太棒了").run(suite)
f.close()
python+unittest写入报告
最新推荐文章于 2024-08-16 15:24:54 发布