Skip to content

MummanaSubramanya/testng-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

TestNG Metrics Report

Creates HTML report based on testng-resutl.xml

HitCount Github Releases (by Release) PRs Welcome Maintenance Open Source Love png1


TesntNG Metrics Overview

COPY FILES


  • Sample Report link
  • Download Metrics.java from here

Key Features

  • 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

How it Works:

  1. Read testng-result.xml file using javax.xml.parsers.DocumentBuilder
  2. Get Suite, Test Case , Status, Elapsed time and Error values
  3. Convert data to html report using java.lang.StringBuilder

How to use in Project:

  1. Download Metrics.java from here and include downloaded file in project

  2. 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");
  3. Execute Metrics.java file

    javac Metrics.java
    java Metrics
    
  4. 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


Credits:

  1. TestNG link
  2. Stackoverflow link
  3. Google charts link
  4. DataTable link
  5. Java link
  6. Jquery | JavaScript link
  7. Bootstrap link
  8. Icons8 link
  9. FontAwesome link

Inspired from robotframework-metrics


About

Generation of metrics report based on testng-result.xml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages