一、运行main函数,未生成测试报告,报错:'_TestResult' object has no attribute 'outputBuffer' 

运行报错:'_TestResult' object has no attribute 'outputBuffer'

 

解决方式:

1、在HTMLTestReportCN.py中

    Ctrl+F搜索_TestResult方法,在__init__方法中添加:

self.outputBuffer = io.StringIO()
self.test_start_time = round(time.time(), 2)

 运行报错:'_TestResult' object has no attribute 'outputBuffer'

 

相关文章:

  • 2021-10-19
  • 2021-08-08
  • 2022-01-07
  • 2021-09-02
  • 2021-10-16
  • 2022-01-04
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案