HTMLTestRunnerCN 自动化报告模板优化
HTMLTestRunner 、HTMLTestRunnerCN
# 自动化报告文字修改、# 饼状图字体修改、# 生产报告时间
report_title = '自动化接口用例测试报告'
desc = '右侧饼状图展示通过率、失败率、错误率'
now = time.strftime("%Y-%m-%d %H_%M_%S", time.localtime())
report_file1 = 'report/TestReport'+now+'.html'
report_file2 ='report/TestReport.html'
#创建报告文件,打印报告数据
'''with open(report_file1, 'wb') as report:
runner = HTMLTestRunnerCN.HTMLTestRunner(stream=report, title=report_title, description=desc)
runner.run(discover1)'''