public interface ExecutionListener
ExecutionListener
is notified whenever the execution plan, a test suite, test class or test step is started or
finished.Modifier and Type | Method and Description |
---|---|
void |
classFailed(TestClass testClass,
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 successfully
|
void |
executionFailed(ExecutionPlan executionPlan,
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 successfully
|
void |
stepFailed(TestStep testStep,
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 successfully
|
void |
suiteFailed(TestSuite testSuite,
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
|
void executionStarted(ExecutionPlan executionPlan)
executionSucceeded(ExecutionPlan)
or executionFailed(ExecutionPlan, Throwable)
will be called after
processing the execution plan.executionPlan
- the execution plan which has been startedvoid executionSucceeded(ExecutionPlan executionPlan)
executionPlan
- the execution plan which has been finished successfullyvoid executionFailed(ExecutionPlan executionPlan, Throwable throwable)
executionPlan
- the execution plan which has been finished with an exceptionthrowable
- The occurred exceptionvoid suiteStarted(TestSuite testSuite)
suiteSucceeded(TestSuite)
or
suiteFailed(TestSuite, Throwable)
will be called after processing the test suite.testSuite
- the test suite which has been startedvoid suiteSucceeded(TestSuite testSuite)
testSuite
- the test suite which has been finished successfullyvoid suiteFailed(TestSuite testSuite, Throwable throwable)
testSuite
- the test suite which has been finished with an exceptionthrowable
- The occurred exceptionvoid suiteSkipped(TestSuite testSuite)
suiteStarted(TestSuite)
has never been
called.testSuite
- the test suite which has been skippedvoid classStarted(TestClass testClass)
classSucceeded(TestClass)
or
classFailed(TestClass, Throwable)
will be called after processing the test class.testClass
- the test class which has been startedvoid classSucceeded(TestClass testClass)
testClass
- the test class which has been finished successfullyvoid classFailed(TestClass testClass, Throwable throwable)
testClass
- the test class which has been finished with an exceptionthrowable
- The occurred exceptionvoid classSkipped(TestClass testClass)
classStarted(TestClass)
has never been
called.testClass
- the test class which has been skippedvoid stepStarted(TestStep testStep)
stepSucceeded(TestStep)
or
stepFailed(TestStep, Throwable)
will be called after processing the test step.testStep
- the test step which has been startedvoid stepSucceeded(TestStep testStep)
testStep
- the test step which has been finished successfullyvoid stepFailed(TestStep testStep, Throwable throwable)
testStep
- the test step which has been finished with an exceptionthrowable
- The occurred exceptionvoid stepSkipped(TestStep testStep)
stepStarted(TestStep)
has never been called.testStep
- the test step which has been skippedCopyright © 2018–2020 b+m Informatik AG. All rights reserved.