更多文章关注公众号:自动化测试 To shre
给大家介绍下如何自定义httprunner测试报告
1.在项目根目录创建创建reports/template
2.在template目录中放入extent_report_template2.x.html文件
3.执行命令hrun (测试文件)--report-template reports/template/extent_report_template2.x.html
4.extent_report_template2.x.html文件下载地址:https://pan.baidu.com/s/1KKYuaLJtjPZQo-ktqKaHyA 提取码:hwcz
1.执行命令
hrun testsuites/api_testsuite.yml --report-template reports/template/extent_report_template2.x.html
2.执行完成会在reports目录下生成报告
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,如果有疑问大家可以留言交流,谢谢大家的支持。
本文分享自 自动化测试 To share 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!