adiralashiva8 / testng-metrics

A HTML Report of test executions via TestNG (No code changes required, Export results)
https://testng-metrics.netlify.com/#
MIT License
4 stars 3 forks source link
automation selenium testng testng-reports

TestNg Metrics Report

TestNg Metrics is a custom report generated using TestNG Listener. Which generate awesome html report without making any changes in your existing automation code

Maven Central PRs Welcome Maintenance Open Source Love png1 HitCount



Key Features


Pre-requisite


How to use in Project:

Maven:

  1. Add testng-metrics dependency in pom.xml

    <dependency>
     <groupId>com.github.adiralashiva8</groupId>
     <artifactId>testng-metrics</artifactId>
     <version>1.6</version>
    </dependency>
  2. Perform maven install

  3. Execute test cases

  4. TestNg Metrics report file will be created

    By default report will be generated at TestNG's output directory. i.e., test-output/metric.html


Not a Maven Project?

  1. Download testng-metrics.jar from here

  2. Add testng-metrics.jar in your project

    • Open Eclipse → Right click on the project
    • Go to Property → Build Path → Configure Build Path
    • Add the testng-metrics.jar in the libraries using Add External Jar button
  3. Execute test cases

  4. TestNg Metrics report will be generated


Customize Report:


Thanks for using testng-metrics!

If you have any questions / suggestions / comments on the report, please feel free to reach me at


Special Thanks To:

Contributors:

  1. Krishnan Mahadevan

    • Mavenised the project ( To consume it from Maven library )
    • Converted the utility into a TestNg listener
    • Guided to publish the library into Maven Central
  2. Saurabh Gupta

    • Contributed source to display data-provider info in Test Metrics
    • Added brand LOGO for TestNG Metrics
  3. Nainappa Illi

    • Contributed source to archive test-output folder and display execution time

Feedback:

  1. Venkateswara Reddy G

  2. [Shyam]()

  3. Testng Users Community


:star: repo if you like it


Inspired from robotframework-metrics