Class ScreenshotListener
- java.lang.Object
-
- de.bmiag.tapir.execution.executor.AbstractExecutionListener
-
- de.bmiag.tapir.seleniumexecution.listener.ScreenshotListener
-
- All Implemented Interfaces:
ExecutionListener
@Component @Order(4000) public class ScreenshotListener extends AbstractExecutionListener
Kicks in whenever a step fails and delegates the screenshot creation toScreenshotService
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
ScreenshotService
-
-
Constructor Summary
Constructors Constructor Description ScreenshotListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stepFailed(TestStep testStep, java.lang.Throwable throwable)
Called when a test step has been finished with an exception.-
Methods inherited from class de.bmiag.tapir.execution.executor.AbstractExecutionListener
classFailed, classSkipped, classStarted, classSucceeded, executionFailed, executionStarted, executionSucceeded, stepSkipped, stepStarted, stepSucceeded, suiteFailed, suiteSkipped, suiteStarted, suiteSucceeded
-
-
-
-
Method Detail
-
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
- Overrides:
stepFailed
in classAbstractExecutionListener
- Parameters:
testStep
- the test step which has been finished with an exceptionthrowable
- The occurred exception- Since:
- 2.0.0
-
-