tungwaiyip / HTMLTestRunner

HTMLTestRunner is an extension to the Python standard library's unittest module. It generates easy to use HTML test reports.
http://tungwaiyip.info/software/sample_test_report.html
100 stars 333 forks source link

HTML报告中新增一列,存放错误截图 #19

Open xiaowei-cai opened 8 years ago

xiaowei-cai commented 8 years ago

可否在HTML报告中增加一列,用以存放用例断言失败时的截图(通过get_screenshot_as_file这个方法截取的存放在本地指定路径下的图片)。断言成功无截图则相应的用例后面的截图一列不添加附件;断言失败有错误截图,则将截图作为附件插入到HTML报告中对应的用例后面。