是否支持HTMLTStrunner以pyunites格式生成报告

2024-04-19 12:32:01 发布

您现在位置:Python中文网/ 问答频道 /正文

无法在python unitest中使用HTMLTestRunner生成报告

下面是我得到的错误信息:

File "c:\python27\Lib\unittest\case.py", line1066,in__str__self._testFunc.__name__)
AttributeError: 'str' object has no attribute '__name__'
Exception AttributeError: "'NoneType' object has no attribute 'MarionetteException'" in <bound method Marionette.__del__ of <marionette_driver.marionette.Marionette object at 0x03D472B0>> ignored

Tags: nonameinobject报告attributefilemarionette