错误信息:
runner.run(suite1)
AttributeError: ‘str’ object has no attribute ‘write’

报错:
UI自动化测试---unittest2生成测试报告报错AttributeError: 'str' object has no attribute 'write'原代码:
UI自动化测试---unittest2生成测试报告报错AttributeError: 'str' object has no attribute 'write'

修改后:
没有打开文件,怎么写!!!!!
UI自动化测试---unittest2生成测试报告报错AttributeError: 'str' object has no attribute 'write'

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-12-17
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案