Generate Robot Test Reports
Generate Robot Test Reports
You can generate all three of these files by running a test using the robot
command.
/> robot --output output.xml --log log.html --report report.html
my_test_file.robot
This command will generate the following files:
- output.xml (raw test results)
- log.html (detailed execution log)
- report.html (summary report)
To view the results:
- Open log.html in a web browser for detailed information about the test run.
- Open report.html in a browser to see the high-level summary.
Example Workflow
- Run the Test: After writing your
.robot
file, you execute the test with therobot
command. - View the Report:
- Open report.html for a quick summary of the test results.
- If a test fails, open log.html for detailed information and debugging.
- Check the Output: If you need to further process the data (e.g., generating an automated report or integrating with other systems), check the output.xml.