1.说明 自动化测试报告是一个很重要的测试数据,网上看了一下,使用HTMLTestRunner.py生成自动化测试报告使用的比较多,但是呢,小白刚刚入手,不太懂,看了很多博客,终于生成了一个测试报告,故此,记录一下. 2.步骤 第一步:下载HTMLTestRunner.py 看网上说Python2和python3有所改变...但是呢,现在都那年那月了,我是直接使用的3了,所以贴一份,3可以使用的代码吧,就不用去到处找了 """ A TestRunner for use wit…
python2 的测试报告美化,需要的同学直接用 #coding=utf-8 """ A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the result at a glance. The simplest way to use this is to invoke its main method. E.g. import unitte…