Interface ExecutionListener
-
- All Known Implementing Classes:
AbstractExecutionListener
,AllureExecutionListener
,HtmlPageCaptureListener
,JUnitExecutionListener
,LoggingExecutionListener
,ScreenshotListener
,StepFinishedStateUpdater
,StepStartedStateUpdater
,TestExecutionListener
public interface ExecutionListener
TheExecutionListener
is notified whenever the execution plan, a test suite, test class or test step is started or finished.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
classFailed(TestClass testClass, java.lang.Throwable throwable)
Called when a test class has been finished with an exception.void
classSkipped(TestClass testClass)
Called when a test class has been skipped.void
classStarted(TestClass testClass)
Called when a test class has been started.void
classSucceeded(TestClass testClass)
Called when a test class has been finished successfullyvoid
executionFailed(ExecutionPlan executionPlan, java.lang.Throwable throwable)
Called when an execution plan has been finished with an exception.void
executionStarted(ExecutionPlan executionPlan)
Called when an execution plan has been started.void
executionSucceeded(ExecutionPlan executionPlan)
Called when an execution plan has been finished successfullyvoid
stepFailed(TestStep testStep, java.lang.Throwable throwable)
Called when a test step has been finished with an exception.void
stepSkipped(TestStep testStep)
Called when a test step has been skipped.void
stepStarted(TestStep testStep)
Called when a test step has been started.void
stepSucceeded(TestStep testStep)
Called when a test step has been finished successfullyvoid
suiteFailed(TestSuite testSuite, java.lang.Throwable throwable)
Called when a test suite has been finished with an exception.void
suiteSkipped(TestSuite testSuite)
Called when a test suite has been skipped.void
suiteStarted(TestSuite testSuite)
Called when a test suite has been started.void
suiteSucceeded(TestSuite testSuite)
Called when a test suite has been finished successfully
-
-
-
Method Detail
-
executionStarted
void executionStarted(ExecutionPlan executionPlan)
Called when an execution plan has been started. After this method has been calledexecutionSucceeded(ExecutionPlan)
orexecutionFailed(ExecutionPlan, Throwable)
will be called after processing the execution plan.- Parameters:
executionPlan
- the execution plan which has been started- Since:
- 2.0.0
-
executionSucceeded
void executionSucceeded(ExecutionPlan executionPlan)
Called when an execution plan has been finished successfully- Parameters:
executionPlan
- the execution plan which has been finished successfully- Since:
- 2.0.0
-
executionFailed
void executionFailed(ExecutionPlan executionPlan, java.lang.Throwable throwable)
Called when an execution plan has been finished with an exception.- Parameters:
executionPlan
- the execution plan which has been finished with an exceptionthrowable
- The occurred exception- Since:
- 2.0.0
-
suiteStarted
void suiteStarted(TestSuite testSuite)
Called when a test suite has been started. After this method has been calledsuiteSucceeded(TestSuite)
orsuiteFailed(TestSuite, Throwable)
will be called after processing the test suite.- Parameters:
testSuite
- the test suite which has been started- Since:
- 2.0.0
-
suiteSucceeded
void suiteSucceeded(TestSuite testSuite)
Called when a test suite has been finished successfully- Parameters:
testSuite
- the test suite which has been finished successfully- Since:
- 2.0.0
-
suiteFailed
void suiteFailed(TestSuite testSuite, java.lang.Throwable throwable)
Called when a test suite has been finished with an exception.- Parameters:
testSuite
- the test suite which has been finished with an exceptionthrowable
- The occurred exception- Since:
- 2.0.0
-
suiteSkipped
void suiteSkipped(TestSuite testSuite)
Called when a test suite has been skipped. For a skipped test suitesuiteStarted(TestSuite)
has never been called.- Parameters:
testSuite
- the test suite which has been skipped- Since:
- 2.0.0
-
classStarted
void classStarted(TestClass testClass)
Called when a test class has been started. After this method has been calledclassSucceeded(TestClass)
orclassFailed(TestClass, Throwable)
will be called after processing the test class.- Parameters:
testClass
- the test class which has been started- Since:
- 2.0.0
-
classSucceeded
void classSucceeded(TestClass testClass)
Called when a test class has been finished successfully- Parameters:
testClass
- the test class which has been finished successfully- Since:
- 2.0.0
-
classFailed
void classFailed(TestClass testClass, java.lang.Throwable throwable)
Called when a test class has been finished with an exception.- Parameters:
testClass
- the test class which has been finished with an exceptionthrowable
- The occurred exception- Since:
- 2.0.0
-
classSkipped
void classSkipped(TestClass testClass)
Called when a test class has been skipped. For a skipped test classclassStarted(TestClass)
has never been called.- Parameters:
testClass
- the test class which has been skipped- Since:
- 2.0.0
-
stepStarted
void stepStarted(TestStep testStep)
Called when a test step has been started. After this method has been calledstepSucceeded(TestStep)
orstepFailed(TestStep, Throwable)
will be called after processing the test step.- Parameters:
testStep
- the test step which has been started- Since:
- 2.0.0
-
stepSucceeded
void stepSucceeded(TestStep testStep)
Called when a test step has been finished successfully- Parameters:
testStep
- the test step which has been finished successfully- Since:
- 2.0.0
-
stepFailed
void stepFailed(TestStep testStep, java.lang.Throwable throwable)
Called when a test step has been finished with an exception.- Parameters:
testStep
- the test step which has been finished with an exceptionthrowable
- The occurred exception- Since:
- 2.0.0
-
stepSkipped
void stepSkipped(TestStep testStep)
Called when a test step has been skipped. For a skipped test stepstepStarted(TestStep)
has never been called.- Parameters:
testStep
- the test step which has been skipped- Since:
- 2.0.0
-
-