Creates HTML Metrics report based on robotframework output.xml
How it Works:
- Read output.xml file using robotframework API (robot.result.model)
- Get Suite, Test Case , Keyword , Status, Start Time, End Time and Elapsed time values using api
- Convert data to html report using Beautifulsoup
How to use in project:
-
Clone project or download here link
git clone https://github.com/adiralashiva8/robotframework-metrics.git -
Copy rf_metrics_report_creator.py file to project (where output.xml file is available.)
Note: output.xml file name having timestamp is recognized by Metrics Report
output.xml, report.html and log.html need to be within same folder.
-
Install beautifulsoup: (to create html report - one time activity)
pip install beautifulsoup4 -
Execute rf_metrics_report_creator.py file
python rf_metrics_report_creator.py -
RobotFramework Metrics Report rf_metrics_result.html file will be created in current folder
Sample Report:
DASHBOARD
SUITE METRICS
TEST METRICS
KEYWORD METRICS
ROBOT LOG
EMAIL STATISTICS
How to Ignore Library Keywords in Metrics Report
- In rf_metrics_report_creator.py file add specific library keywords to tuple ignore_library to ignore in report
- In Metric report, keywords with type value 'for' and 'foritem' are ignored
- Following library keywords are ignored in Metrics Report
ignore_library = [ 'BuiltIn', 'SeleniumLibrary', 'String', 'Collections', 'DateTime', ]
Versions:
-
V2.1 link
Status: Beta
- Dashboard
- Suite Metrics
- Test Metrics
- Keyword Metrics
- Robot Logs
-
V2.0 link
Status: Stable
- Dashboard
- Suite Metrics
- Test Metrics
- Keyword Metrics
- Robot Logs
-
V1.0 link
Status: Stable
- Dashboard
- Test Metrics
- Keyword Metrics
Credits:
- Robotframework link
- W3Schools link
- Stackoverflow link
- Google charts link
- DataTable link
- BeautifulSoup link
- Jquery | JavaScript link
- Bootstrap link
- Icons8 link
- FontAwesome link
You are watching first HTML 'Metrics Report' in Robot framework.