There are many open source reporter APIs that can be used to provide reports of TestNG Suite results. For instance, ExtentReports by AventStack has an API that allows users to customize the results of a TestNG Suite run into an HTML report format. This reporting API, like others, is based on the TestNG's IReporter class. To generate a custom report using the IReporter interface, users create a new class that implements IReporter and the generateReport method:
The JavaDoc for the IReporter class is located at http://static.javadoc.io/org.testng/testng/6.9.5/org/testng/IReporter.html.
import org.testng.IReporter;
/**
* TestNG_Reporter Class
*
* Note: This report relies on the TestNG Suite XML file structure
*
* @author name
*
*/
public class TestNG_Reporter implements IReporter {
/**
* generateReport - method that generates a TestNG results...