XTestRunner
XTestRunner copied to clipboard
Modern style test report based on unittest framework.
报错信息 ``` runner.run(suit) TypeError: run() missing 2 required positional arguments: 'rerun' and 'save_last_run' ```
你更改后的版本,我在python2.7.13版本可以使用,python3.6.1版本会报错 EF.1.2Traceback (most recent call last): File "HTMLTestRunner.py", line 826, in main(module=None) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/main.py", line 94, in __init__ self.runTests() File "HTMLTestRunner.py", line 817, in runTests unittest.TestProgram.runTests(self) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/main.py", line 255,...
### run.py ``` if __name__ == '__main__': # 报告存放路径,可设置相对路径 print(os.system('google-chrome --version')) print(os.system('chrome --version')) print(os.system('chromedriver -v')) rpfilepath = rpfolder filename = EmailConfData.attachment_html_filename file_path = rpfilepath + "/" + filename file_result =...

明明已经安装XTestRunner成功,在python中却显示No module named 'XTestRunner'   该问题可能是3天内引入的。 
自动化测试需要, 用例会存在稳定性,通过重试进一步确认。
如下图: 
在公司使用本模块生成的报告,底部都会自动加上脚注,个人觉得有影响(跟公司品牌互斥)。虽然说可以手动在模板中去掉,但是不可能每次都手动去修改。如果本项目是开源的话,我建议可以去掉脚注或者给可以去掉脚注的参数。