Package org.testng
Interface IReporter
-
- All Superinterfaces:
ITestNGListener
- All Known Implementing Classes:
AbstractXmlReporter,EmailableReporter2,ExitCodeListener,FailedReporter,JUnitReportReporter,Main,PerSuiteXMLReporter,SuiteHTMLReporter,XMLReporter
public interface IReporter extends ITestNGListener
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
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidgenerateReport(java.util.List<XmlSuite> xmlSuites, java.util.List<ISuite> suites, java.lang.String outputDirectory)Generate a report for the given suites into the specified output directory.default IReporterConfiggetConfig()Get the reporter configuration object.-
Methods inherited from interface org.testng.ITestNGListener
isEnabled
-
-
-
-
Method Detail
-
generateReport
default void generateReport(java.util.List<XmlSuite> xmlSuites, java.util.List<ISuite> suites, java.lang.String outputDirectory)
Generate a report for the given suites into the specified output directory.- Parameters:
xmlSuites- The list ofXmlSuitesuites- The list ofISuiteoutputDirectory- The output directory
-
getConfig
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
ReporterConfigto serialize, deserialize, and instantiate the reporter.- Returns:
- reporter configuration object
-
-