当前位置:Gxlcms > html代码 > cucumber生成html的报告实现步骤

cucumber生成html的报告实现步骤

时间:2021-07-01 10:21:17 帮助过:259人阅读

生成html的报告:
1, cucumber user_register/ --format html --out=/var/www/features_report.html
2, 在浏览器中输入 http://127.0.0.1/features_report.html 查看报告。
3, 别人要浏览器中输入 http://10.0.2.99/features_report.html ==>10.0.2.99是我运行测试程序的测试机,也就是测试报告会存放在10.0.2.99的/var/www/目录下。
4, 配置config/cucumber.yml 文件, 这个文件放在support目录下。
输入:
drhel31_cucumber_report: --format progress --format html --out=/var/www/drhel31_cucumber_report.html
drhel21_cucumber_report: --format progress --format html --out=/var/www/drhel21_cucumber_report.html
5, cucumber user_register/ -p drhel31_cucumber_report 运行时会先识别cucumber里的yml配置。
这个report 在哪台机子运行就会生成在哪台机子上的 /var/www/目录下,且名为drhel31_cucumber_report.html

以上就是cucumber生成html的报告实现步骤的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行