cucumber 生成html的报告:

发布时间:2020-06-05 18:01:24 作者:夜半煮饭
来源:网络 阅读:3460

生成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

推荐阅读:
  1. Python 下载生成报告HTMLTestRunner的发
  2. python生成pdf报告以及python实现html转换为pdf报告

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

bdd cucumber mb

上一篇:如何搭建Nacos环境并整合springboot2

下一篇:jetty配置SSL证书实现http请求

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》