Interface TestListener

All Known Implementing Classes:
TestReporters

public interface TestListener
Test listener interface. Listeners invoked on test start, finish, failure, skip, success.
  • Method Details

    • onTestStart

      void onTestStart(TestCase test)
      Invoked when test when a test starts execution
    • onTestFinish

      @Deprecated(forRemoval=true) default void onTestFinish(TestCase test)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • onTestExecutionStart

      default void onTestExecutionStart(TestCase test)
      Invoked when test execution starts (after BeforeTest execution} execution)
    • onTestExecutionEnd

      default void onTestExecutionEnd(TestCase test)
      Invoked when test execution has ended (after final actions execution and before AfterTest execution)
      See Also:
    • onTestEnd

      default void onTestEnd(TestCase test)
      Invoked at the very end of test execution
      See Also:
    • onTestSuccess

      void onTestSuccess(TestCase test)
      Invoked when a test finishes successfully
    • onTestFailure

      void onTestFailure(TestCase test, Throwable cause)
      Invoked when a test finishes with failure
    • onTestSkipped

      void onTestSkipped(TestCase test)
      Invoked when a test is skipped
    • onFinalActionsStart

      default void onFinalActionsStart(TestCase test)
      Invoked when final actions start, only if any exist
    • onFinalActionsEnd

      default void onFinalActionsEnd(TestCase test)
      Invoked after final actions have completely finished, only if any exist
    • onBeforeTestStart

      default void onBeforeTestStart(TestCase test)
      Invoked when BeforeTest execution starts, only if any exist
    • onBeforeTestEnd

      default void onBeforeTestEnd(TestCase test)
      Invoked when BeforeTest execution ends, only if any exist
    • onAfterTestStart

      default void onAfterTestStart(TestCase test)
      Invoked when AfterTest execution starts, only if any exist
    • onAfterTestEnd

      default void onAfterTestEnd(TestCase test)
      Invoked when AfterTest execution ends, only if any exist