Creates awesome HTML (dashboard view) report by parsing robotframework output.xml file
Install robotmetrics
Case 1: Using pip
pip install robotframework-metrics==3.1.2
Case 2: Using setup.py (clone project and run command within root)
python setup.py install
Case 3: For latest changes use following command (pre-release or changes in master)
pip install git+https://github.com/adiralashiva8/robotframework-metrics
Execute robotmetrics command to generate report
Case 1: No change in output.xml, log.html file name's and user is in same folder
robotmetrics
Case 2: Change in output.xml, log.html file name's And .xml and .html files are under 'Result' folder
robotmetrics --inputpath ./Result/ --output output1.xml --log log1.html
robotframework-metrics can parse multiple xmls at a time. Following is the command
robotmetrics --inputpath ./Result/ --output "output1.xml,output2.xml" --log log1.html
For more info on command line options use:
robotmetrics --help
RobotFramework Metrics Report metric-timestamp.html file will be created in current folder | -inputpath
if specified
Note: From v3.1.4 users can specify custom_report_name instead of metrics-timestamp.html (changes in master)
robotmetrics -M regression_metrics.html
Specify Logo in Robotframework metrics:
Custom Logo : Customize your logo by using --logo command line option
--logo "https://mycompany/logo.jpg"
--ignore "Collections,Selenium2Library"
ignore_library = [
'BuiltIn',
'SeleniumLibrary',
'String',
'Collections',
'DateTime',
]
Execute robotmetrics command after suite or test execution as follows:
Create .bat (or) .sh file with following snippet
robot test.robot &&
robotmetrics [: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
*Performance Improvement (Beta) *
- Step 1: Install gevent
- Step 2: Execute robotmetrics command
Thanks for using robotframework-metrics!
If you have any questions / suggestions / comments on the report, please feel free to reach me at
adiralashiva8@gmail.com
robotframeworkmetrics
shivaprasadadirala
@ShivaAdirala
Credits:
Note: Report uses above open source libraries for generating report and its not offline compatible
Special Thanks To:
Idea, Guidance and Support:
Contributors:
Pekka Klarck [Author of robotframework]
- Contributed source to get 'Test Case' name from keyword
- Suggested to use robotframework api to parse output.xml content
- Contributed source to use command line options for report
- Made robotmetrics installable (pip)
- Contributed source to improve performance
- Contributed source to use ArgParser
- Contributed source to provide a human readable error if output.xml does not exist
- Contributed source to parse multiple xml's
- Fixed distorted image
- Contributed source to specify custom metrics file name (changes will be from v3.1.4)
Feedback:
STAR to appreciate us
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。