Top Description Methods
org.testng

public Interface IReporter

extends ITestNGListener
Known Direct Implementers
org.testng.reporters.AbstractXmlReporter, org.testng.reporters.EmailableReporter2, org.testng.reporters.FailedReporter, org.testng.reporters.JUnitReportReporter, org.testng.reporters.SuiteHTMLReporter, org.testng.reporters.jq.Main, org.testng.internal.ExitCodeListener
Imports
java.util.List, org.testng.reporters.IReporterConfig, .PojoReporterConfig, org.testng.xml.XmlSuite

This interface can be implemented by clients to generate a report. Its method generateReport() will be invoked after all the suite have run and the parameters give all the test results that happened during that run.

Method Summary

Modifier and TypeMethod and Description
public default void
generateReport(List<XmlSuite>
The list of XmlSuite
xmlSuites
,
List<ISuite>
The list of ISuite
suites
,
String
The output directory
outputDirectory
)

Generate a report for the given suites into the specified output directory.

public default IReporterConfig

Returns:

reporter configuration object
getConfig
()

Get the reporter configuration object.

Inherited from org.testng.ITestNGListener:
isEnabled

Method Detail

generateReportback to summary
public default void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)

Generate a report for the given suites into the specified output directory.

Parameters
xmlSuites:List<XmlSuite>

The list of XmlSuite

suites:List<ISuite>

The list of ISuite

outputDirectory:String

The output directory

getConfigback to summary
public default IReporterConfig getConfig()

Get the reporter configuration object.

Note

Reporter configuration objects must adhere to the JavaBean object conventions, providing getter and setter methods that conform to standard naming rules. This enables org.testng.internal.ReporterConfig to serialize, deserialize, and instantiate the reporter.

Returns:IReporterConfig

reporter configuration object