org.testng.IReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
package org.testng;
import java.util.List;
import org.testng.reporters.IReporterConfig;
import org.testng.reporters.PojoReporterConfig;
import 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.
*/
public interface IReporter extends ITestNGListener {
/**
* Generate a report for the given suites into the specified output directory.
*
* @param xmlSuites The list of XmlSuite
* @param suites The list of ISuite
* @param outputDirectory The output directory
*/
default void generateReport(
List xmlSuites, List suites, String outputDirectory) {
// not implemented
}
/**
* 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 {@link
* org.testng.internal.ReporterConfig} to serialize, deserialize, and instantiate the reporter.
*
* @return reporter configuration object
*/
default IReporterConfig getConfig() {
return new PojoReporterConfig(this);
}
}