Package org.citrusframework.report
Class TestReporters
java.lang.Object
org.citrusframework.report.TestReporters
- All Implemented Interfaces:
TestListener,TestReporterAware,TestSuiteListener
public class TestReporters
extends Object
implements TestListener, TestSuiteListener, TestReporterAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTestReporter(TestReporter testReporter) Adds a new test reporter.Obtains the testReporters.Gets the testResults.booleanObtains the autoClear.voidonFinish()Invoked on test suite finish.voidonFinishFailure(Throwable cause) Invoked after failed test suite finish.voidInvoked after successful test suite finish.voidonStart()Invoked on test suite start.voidonStartFailure(Throwable cause) Invoked after failed test suite start.voidInvoked after successful test suite start.voidonTestExecutionEnd(TestCase test) Invoked when test execution has ended (after final actions execution and beforeAfterTestexecution)voidonTestFailure(TestCase test, Throwable cause) Invoked when a test finishes with failurevoidonTestSkipped(TestCase test) Invoked when a test is skippedvoidonTestStart(TestCase test) Invoked when test when a test starts executionvoidonTestSuccess(TestCase test) Invoked when a test finishes successfullyvoidsetAutoClear(boolean autoClear) Specifies the autoClear.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.report.TestListener
onAfterTestEnd, onAfterTestStart, onBeforeTestEnd, onBeforeTestStart, onFinalActionsEnd, onFinalActionsStart, onTestEnd, onTestExecutionStart, onTestFinish
-
Constructor Details
-
TestReporters
public TestReporters()
-
-
Method Details
-
onStart
public void onStart()Description copied from interface:TestSuiteListenerInvoked on test suite start.- Specified by:
onStartin interfaceTestSuiteListener
-
onFinishFailure
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
-
onFinish
public void onFinish()Description copied from interface:TestSuiteListenerInvoked on test suite finish.- Specified by:
onFinishin interfaceTestSuiteListener
-
onStartFailure
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
Description copied from interface:TestListenerInvoked when test when a test starts execution- Specified by:
onTestStartin interfaceTestListener
-
onTestExecutionEnd
Description copied from interface:TestListenerInvoked when test execution has ended (after final actions execution and beforeAfterTestexecution)- Specified by:
onTestExecutionEndin interfaceTestListener- See Also:
-
onTestSuccess
Description copied from interface:TestListenerInvoked when a test finishes successfully- Specified by:
onTestSuccessin interfaceTestListener
-
onTestFailure
Description copied from interface:TestListenerInvoked when a test finishes with failure- Specified by:
onTestFailurein interfaceTestListener
-
onTestSkipped
Description copied from interface:TestListenerInvoked when a test is skipped- Specified by:
onTestSkippedin interfaceTestListener
-
addTestReporter
Description copied from interface:TestReporterAwareAdds a new test reporter.- Specified by:
addTestReporterin interfaceTestReporterAware
-
getTestReporters
Obtains the testReporters. -
isAutoClear
public boolean isAutoClear()Obtains the autoClear. -
setAutoClear
public void setAutoClear(boolean autoClear) Specifies the autoClear. -
getTestResults
Gets the testResults.
-