ReportNG is a reporter add-on for TestNG that implements the report listener of TestNG. ReportNG reports provides better user interface(look and feel)compared to the original HTML reports. To generate a ReportNG report we have to add the reporting class to the list of listeners of TestNG while executing the tests.
Lets implement this in our basic example that we have used in our First Test case with TestNG
Download the required JAR files from :-
Unzip the JAR files and add to the project.
How to add JAR files in Eclipse
|Adding Guice JAR’s|
Add listener to testng.xml file
Incase you are getting the below error,it can be due to missing JAR files in Guice, try adding them again.
Observing the results,
|Test Results in ReportNG|
We can absorb Reporter.log messages inside output.html
|Reporter.log messages in ReportNG|