Creates HTML report based on testng-resutl.xml
TesntNG Metrics Overview
- Dashboard view of execution results
- Top 10 test performances
- Sort and Search Results
- Export Results
- Generate email (.eml) with statisitics
- No Installation or Code changes required
- Read testng-result.xml file using javax.xml.parsers.DocumentBuilder
- Get Suite, Test Case , Status, Elapsed time and Error values
- Convert data to html report using java.lang.StringBuilder
-
Download
Metrics.java
from here and include downloaded file in project -
Make required changes like logo, path to testng-report.xml
Modify logo
- Line no. : 10 in file
String logo = "customlogo.jpg";
Modify testng-report.xml path
- Line no. : 19 in file
String path = System.getProperty("mycustompath");
-
Execute Metrics.java file
javac Metrics.java java Metrics
-
TestNG Metrics report metric-timestamp.html file will be created in current folder
Thanks for using testng-metrics!
- What is your opinion of this report?
- What’s the feature I should add?
If you have any questions / suggestions / comments on the report, please feel free to reach me at
- Email:
adiralashiva8@gmail.com
- LinkedIn:
shivaprasadadirala
- Twitter:
@ShivaAdirala
- Mailing List (google group):
testng-metrics
Credits:
- TestNG link
- Stackoverflow link
- Google charts link
- DataTable link
- Java link
- Jquery | JavaScript link
- Bootstrap link
- Icons8 link
- FontAwesome link
Inspired from robotframework-metrics