Package com.consol.citrus.report
Class TestReporters
- java.lang.Object
-
- com.consol.citrus.report.TestReporters
-
- All Implemented Interfaces:
TestListener,TestReporterAware,TestSuiteListener
public class TestReporters extends Object implements TestListener, TestSuiteListener, TestReporterAware
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description TestReporters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTestReporter(TestReporter testReporter)Adds a new test reporter.List<TestReporter>getTestReporters()Obtains the testReporters.TestResultsgetTestResults()Gets the testResults.booleanisAutoClear()Obtains the autoClear.voidonFinish()Invoked on test suite finish.voidonFinishFailure(Throwable cause)Invoked after failed test suite finish.voidonFinishSuccess()Invoked after successful test suite finish.voidonStart()Invoked on test suite start.voidonStartFailure(Throwable cause)Invoked after failed test suite start.voidonStartSuccess()Invoked after successful test suite start.voidonTestFailure(TestCase test, Throwable cause)Invoked when test finished with failurevoidonTestFinish(TestCase test)Invoked when test gets finishedvoidonTestSkipped(TestCase test)Invoked when test is skippedvoidonTestStart(TestCase test)Invoked when test gets startedvoidonTestSuccess(TestCase test)Invoked when test finished with successvoidsetAutoClear(boolean autoClear)Specifies the autoClear.
-
-
-
Method Detail
-
onStart
public void onStart()
Description copied from interface:TestSuiteListenerInvoked on test suite start.- Specified by:
onStartin interfaceTestSuiteListener
-
onFinishFailure
public void onFinishFailure(Throwable cause)
Description copied from interface:TestSuiteListenerInvoked after failed test suite finish.- Specified by:
onFinishFailurein interfaceTestSuiteListener
-
onFinishSuccess
public void onFinishSuccess()
Description copied from interface:TestSuiteListenerInvoked after successful test suite finish.- Specified by:
onFinishSuccessin interfaceTestSuiteListener
-
getTestResults
public TestResults getTestResults()
Gets the testResults.- Returns:
-
onFinish
public void onFinish()
Description copied from interface:TestSuiteListenerInvoked on test suite finish.- Specified by:
onFinishin interfaceTestSuiteListener
-
onStartFailure
public void onStartFailure(Throwable cause)
Description copied from interface:TestSuiteListenerInvoked after failed test suite start.- Specified by:
onStartFailurein interfaceTestSuiteListener
-
onStartSuccess
public void onStartSuccess()
Description copied from interface:TestSuiteListenerInvoked after successful test suite start.- Specified by:
onStartSuccessin interfaceTestSuiteListener
-
onTestStart
public void onTestStart(TestCase test)
Description copied from interface:TestListenerInvoked when test gets started- Specified by:
onTestStartin interfaceTestListener
-
onTestFinish
public void onTestFinish(TestCase test)
Description copied from interface:TestListenerInvoked when test gets finished- Specified by:
onTestFinishin interfaceTestListener
-
onTestSuccess
public void onTestSuccess(TestCase test)
Description copied from interface:TestListenerInvoked when test finished with success- Specified by:
onTestSuccessin interfaceTestListener
-
onTestFailure
public void onTestFailure(TestCase test, Throwable cause)
Description copied from interface:TestListenerInvoked when test finished with failure- Specified by:
onTestFailurein interfaceTestListener
-
onTestSkipped
public void onTestSkipped(TestCase test)
Description copied from interface:TestListenerInvoked when test is skipped- Specified by:
onTestSkippedin interfaceTestListener
-
addTestReporter
public void addTestReporter(TestReporter testReporter)
Description copied from interface:TestReporterAwareAdds a new test reporter.- Specified by:
addTestReporterin interfaceTestReporterAware
-
getTestReporters
public List<TestReporter> getTestReporters()
Obtains the testReporters.- Returns:
-
isAutoClear
public boolean isAutoClear()
Obtains the autoClear.- Returns:
-
setAutoClear
public void setAutoClear(boolean autoClear)
Specifies the autoClear.- Parameters:
autoClear-
-
-