How to generate test report in Robotframework

1. Create the project and write the test cases
. 2. Run the command in command mode.
Open the cmd Window command prompt and switch to the Robot Framework project directory.
a. Run the specified use case pybot xxx.robot
b. Run all test cases pybot *.robot suffixed with robot
c. Run all use cases in the current directory: pybot F:\RFtest\XX

3. When the test is run through the above command, Robot Framework will automatically generate a test report for us.
When the use case is over, Robot Framework will generate three files in the project directory: output.xml, log.html and report.html. The test result recorded
as
Insert picture description here
output.xml is an XML file. According to specific needs, scripts can be written to read XML files and generate specific test reports.
log.html will record every step of Robot Framework operation, mainly used for viewing during the process of writing test scripts.
report.html is the test report, which displays the running status of the test case in a collated manner. As shown below

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42166361/article/details/104790641