Package com.consol.citrus.report
Class AbstractTestReporter
- java.lang.Object
-
- com.consol.citrus.report.AbstractTestReporter
-
- All Implemented Interfaces:
com.consol.citrus.report.TestReporter
- Direct Known Subclasses:
AbstractOutputFileReporter
,JUnitReporter
,LoggingReporter
public abstract class AbstractTestReporter extends Object implements com.consol.citrus.report.TestReporter
- Since:
- 2.7.4
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
log
Logger
-
Constructor Summary
Constructors Constructor Description AbstractTestReporter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
generate(com.consol.citrus.report.TestResults testResults)
Subclasses must implement this method and generate the test report for given test results.void
generateReport(com.consol.citrus.report.TestResults testResults)
String
getReportDirectory()
Gets the reportDirectory.boolean
isIgnoreErrors()
Obtains the ignoreErrors.void
setIgnoreErrors(boolean ignoreErrors)
Specifies the ignoreErrors.void
setReportDirectory(String reportDirectory)
Sets the reportDirectory.
-
-
-
Method Detail
-
generateReport
public final void generateReport(com.consol.citrus.report.TestResults testResults)
- Specified by:
generateReport
in interfacecom.consol.citrus.report.TestReporter
-
generate
protected abstract void generate(com.consol.citrus.report.TestResults testResults)
Subclasses must implement this method and generate the test report for given test results.- Parameters:
testResults
-
-
getReportDirectory
public String getReportDirectory()
Gets the reportDirectory.- Returns:
-
setReportDirectory
public void setReportDirectory(String reportDirectory)
Sets the reportDirectory.- Parameters:
reportDirectory
-
-
isIgnoreErrors
public boolean isIgnoreErrors()
Obtains the ignoreErrors.- Returns:
-
setIgnoreErrors
public void setIgnoreErrors(boolean ignoreErrors)
Specifies the ignoreErrors.- Parameters:
ignoreErrors
-
-
-