Class AbstractExecutionListener
- java.lang.Object
-
- de.bmiag.tapir.execution.executor.AbstractExecutionListener
-
- All Implemented Interfaces:
ExecutionListener
- Direct Known Subclasses:
HtmlPageCaptureListener
,JUnitExecutionListener
,ScreenshotListener
,StepFinishedStateUpdater
,StepStartedStateUpdater
public abstract class AbstractExecutionListener extends java.lang.Object implements ExecutionListener
TheAbstractExecutionListener
implement all methods ofExecutionListener
by providing an empty implementation. Subclasses can extend this class if they do not want to be forced to implement all the methods ofExecutionListener
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description AbstractExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete 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
public void executionStarted(ExecutionPlan executionPlan)
Description copied from interface:ExecutionListener
Called when an execution plan has been started. After this method has been calledExecutionListener.executionSucceeded(ExecutionPlan)
orExecutionListener.executionFailed(ExecutionPlan, Throwable)
will be called after processing the execution plan.- Specified by:
executionStarted
in interfaceExecutionListener
- Parameters:
executionPlan
- the execution plan which has been started
-
executionSucceeded
public void executionSucceeded(ExecutionPlan executionPlan)
Description copied from interface:ExecutionListener
Called when an execution plan has been finished successfully- Specified by:
executionSucceeded
in interfaceExecutionListener
- Parameters:
executionPlan
- the execution plan which has been finished successfully
-
executionFailed
public void executionFailed(ExecutionPlan executionPlan, java.lang.Throwable throwable)
Description copied from interface:ExecutionListener
Called when an execution plan has been finished with an exception.- Specified by:
executionFailed
in interfaceExecutionListener
- Parameters:
executionPlan
- the execution plan which has been finished with an exceptionthrowable
- The occurred exception
-
suiteStarted
public void suiteStarted(TestSuite testSuite)
Description copied from interface:ExecutionListener
Called when a test suite has been started. After this method has been calledExecutionListener.suiteSucceeded(TestSuite)
orExecutionListener.suiteFailed(TestSuite, Throwable)
will be called after processing the test suite.- Specified by:
suiteStarted
in interfaceExecutionListener
- Parameters:
testSuite
- the test suite which has been started
-
suiteSucceeded
public void suiteSucceeded(TestSuite testSuite)
Description copied from interface:ExecutionListener
Called when a test suite has been finished successfully- Specified by:
suiteSucceeded
in interfaceExecutionListener
- Parameters:
testSuite
- the test suite which has been finished successfully
-
suiteFailed
public void suiteFailed(TestSuite testSuite, java.lang.Throwable throwable)
Description copied from interface:ExecutionListener
Called when a test suite has been finished with an exception.- Specified by:
suiteFailed
in interfaceExecutionListener
- Parameters:
testSuite
- the test suite which has been finished with an exceptionthrowable
- The occurred exception
-
suiteSkipped
public void suiteSkipped(TestSuite testSuite)
Description copied from interface:ExecutionListener
Called when a test suite has been skipped. For a skipped test suiteExecutionListener.suiteStarted(TestSuite)
has never been called.- Specified by:
suiteSkipped
in interfaceExecutionListener
- Parameters:
testSuite
- the test suite which has been skipped
-
classStarted
public void classStarted(TestClass testClass)
Description copied from interface:ExecutionListener
Called when a test class has been started. After this method has been calledExecutionListener.classSucceeded(TestClass)
orExecutionListener.classFailed(TestClass, Throwable)
will be called after processing the test class.- Specified by:
classStarted
in interfaceExecutionListener
- Parameters:
testClass
- the test class which has been started
-
classSucceeded
public void classSucceeded(TestClass testClass)
Description copied from interface:ExecutionListener
Called when a test class has been finished successfully- Specified by:
classSucceeded
in interfaceExecutionListener
- Parameters:
testClass
- the test class which has been finished successfully
-
classFailed
public void classFailed(TestClass testClass, java.lang.Throwable throwable)
Description copied from interface:ExecutionListener
Called when a test class has been finished with an exception.- Specified by:
classFailed
in interfaceExecutionListener
- Parameters:
testClass
- the test class which has been finished with an exceptionthrowable
- The occurred exception
-
classSkipped
public void classSkipped(TestClass testClass)
Description copied from interface:ExecutionListener
Called when a test class has been skipped. For a skipped test classExecutionListener.classStarted(TestClass)
has never been called.- Specified by:
classSkipped
in interfaceExecutionListener
- Parameters:
testClass
- the test class which has been skipped
-
stepStarted
public void stepStarted(TestStep testStep)
Description copied from interface:ExecutionListener
Called when a test step has been started. After this method has been calledExecutionListener.stepSucceeded(TestStep)
orExecutionListener.stepFailed(TestStep, Throwable)
will be called after processing the test step.- Specified by:
stepStarted
in interfaceExecutionListener
- Parameters:
testStep
- the test step which has been started
-
stepSucceeded
public void stepSucceeded(TestStep testStep)
Description copied from interface:ExecutionListener
Called when a test step has been finished successfully- Specified by:
stepSucceeded
in interfaceExecutionListener
- Parameters:
testStep
- the test step which has been finished successfully
-
stepFailed
public void stepFailed(TestStep testStep, java.lang.Throwable throwable)
Description copied from interface:ExecutionListener
Called when a test step has been finished with an exception.- Specified by:
stepFailed
in interfaceExecutionListener
- Parameters:
testStep
- the test step which has been finished with an exceptionthrowable
- The occurred exception
-
stepSkipped
public void stepSkipped(TestStep testStep)
Description copied from interface:ExecutionListener
Called when a test step has been skipped. For a skipped test stepExecutionListener.stepStarted(TestStep)
has never been called.- Specified by:
stepSkipped
in interfaceExecutionListener
- Parameters:
testStep
- the test step which has been skipped
-
-