python小技巧:使用HTMLTestReport模板生成html报告
将自动化测试的结果生成一个报告: 闲话少说,上代码: # author:闫振兴 # contact: 1753502691@qq.com # datetime:2020/4/9 21:04 # software: PyCharm """ 文件说明: """ # encoding:utf-8 import unittest import HTMLTestReport import time now = time.strftime("%Y_%m_%d") if __name__ == '__main__': fileName = "parameterTest_%s.html" % no
下载地址
用户评论