Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Cucumber generates a report for html:

Shulou Source: shulou.com Published: 2022-06-03 07:12:15 10月02日 Update

Generate a report for html:

1, cucumber user_register/-format html-out=/var/www/features_report.html

2, enter http://127.0.0.1/features_report.html in the browser to view the report.

3, others want to enter http://10.0.2.99/features_report.html = > 10.0.2.99 in the browser is the test machine where I run the test program, that is, the test report will be stored in the / var/www/ directory of 10.0.2.99.

4. Configure the config/cucumber.yml file, which is placed in the support directory.

Enter:

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. The cucumber user_register/-p drhel31_cucumber_report runtime will first identify the yml configuration in cucumber.

The report will be generated under the / var/www/ directory on the machine on which it runs, and is called drhel31_cucumber_report.html.

Tags: Report directory test input run generate file machine browser browse configure that is report meeting program test machine Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Docker MySQL Xiaomi vpn