Similar as robotframework-metric project but keywords stats are not included in this project
- Read output.xml file using robotframework API
- Get Suite, Test Case Status and Elapsed time values
- Convert data to html report using Beautifulsoup
-
Install robotmetrics
Using setup.py (clone project and run command within root)
python setup.py install
-
Execute robotcmetrics command to generate report
Case 1: No change in output.xml, log.html file name's and user is in same folder
robotcmetrics
Case 2: Change in output.xml, log.html file name's And .xml and .html files are under 'Result' folder
robotcmetrics --inputpath ./Result/ --output "output1.xml" --log "log1.html"
robotframework-metrics can parse multiple xmls at a time. Following is the command
robotcmetrics --inputpath ./Result/ --output "output1.xml,output2.xml" --log "log1.html"
For more info on command line options use:
robotcmetrics --help
-
RobotFramework Metrics Report metric-timestamp.html file will be created in current folder |
-inputpath
if specified
Specify Logo in Robotframework metrics:
-
Custom Logo : Customize your logo by using --logo command line option
--logo "https://mycompany/logo.jpg"
Execute robotmetrics command after suite or test execution as follows:
-
Create .bat (or) .sh file with following snippet
robot test.robot && robotcmetrics [:options]
&& is used to execute multiple command's in .bat file
-
Modify robotmetrics command as required and execute .bat file
-
Robotframework metrics will be created after execution
If you have any questions / suggestions / comments on the report, please feel free to reach me at
- Email:
[email protected]
- Slack:
robotframeworkmetrics
- LinkedIn:
shivaprasadadirala
- Twitter:
@ShivaAdirala