Package org.citrusframework.report
Interface TestListener
- All Known Implementing Classes:
TestReporters
public interface TestListener
Test listener interface. Listeners invoked on test start, finish, failure, skip, success.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonAfterTestEnd(TestCase test) Invoked whenAfterTestexecution ends, only if any existdefault voidonAfterTestStart(TestCase test) Invoked whenAfterTestexecution starts, only if any existdefault voidonBeforeTestEnd(TestCase test) Invoked whenBeforeTestexecution ends, only if any existdefault voidonBeforeTestStart(TestCase test) Invoked whenBeforeTestexecution starts, only if any existdefault voidonFinalActionsEnd(TestCase test) Invoked after final actions have completely finished, only if any existdefault voidonFinalActionsStart(TestCase test) Invoked when final actions start, only if any existdefault voidInvoked at the very end of test executiondefault voidonTestExecutionEnd(TestCase test) Invoked when test execution has ended (after final actions execution and beforeAfterTestexecution)default voidonTestExecutionStart(TestCase test) Invoked when test execution starts (afterBeforeTestexecution} execution)voidonTestFailure(TestCase test, Throwable cause) Invoked when a test finishes with failuredefault voidonTestFinish(TestCase test) Deprecated, for removal: This API element is subject to removal in a future version.voidonTestSkipped(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 successfully
-
Method Details
-
onTestStart
Invoked when test when a test starts execution -
onTestFinish
Deprecated, for removal: This API element is subject to removal in a future version.use ononTestExecutionEnd(TestCase) -
onTestExecutionStart
Invoked when test execution starts (afterBeforeTestexecution} execution) -
onTestExecutionEnd
Invoked when test execution has ended (after final actions execution and beforeAfterTestexecution)- See Also:
-
onTestEnd
Invoked at the very end of test execution- See Also:
-
onTestSuccess
Invoked when a test finishes successfully -
onTestFailure
Invoked when a test finishes with failure -
onTestSkipped
Invoked when a test is skipped -
onFinalActionsStart
Invoked when final actions start, only if any exist -
onFinalActionsEnd
Invoked after final actions have completely finished, only if any exist -
onBeforeTestStart
Invoked whenBeforeTestexecution starts, only if any exist -
onBeforeTestEnd
Invoked whenBeforeTestexecution ends, only if any exist -
onAfterTestStart
Invoked whenAfterTestexecution starts, only if any exist -
onAfterTestEnd
Invoked whenAfterTestexecution ends, only if any exist
-
onTestExecutionEnd(TestCase)