您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

cucumber生成html的报告实现步骤

2025/8/4 6:33:07发布19次查看
生成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的报告实现步骤的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product