-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.interceptors.watcher.testcase.StepWatcherInterceptor
public final class ScreenshotStepWatcherInterceptor implements StepWatcherInterceptor
The implementation of the StepWatcherInterceptor interface. Takes screenshots if step succeeds or fails.
-
-
Constructor Summary
Constructors Constructor Description ScreenshotStepWatcherInterceptor(Screenshots screenshots)
-
Method Summary
Modifier and Type Method Description UnitinterceptAfterWithSuccess(StepInfo stepInfo)Takes a screenshot of the screen on which the step succeeded. UnitinterceptAfterWithError(StepInfo stepInfo, Throwable error)Takes a screenshot of the screen on which the step falied. -
Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.impl.screenshot.ScreenshotStepWatcherInterceptor
interceptAfterFinally, interceptBefore -
Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.StepWatcherInterceptor
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ScreenshotStepWatcherInterceptor
ScreenshotStepWatcherInterceptor(Screenshots screenshots)
-
-
Method Detail
-
interceptAfterWithSuccess
Unit interceptAfterWithSuccess(StepInfo stepInfo)
Takes a screenshot of the screen on which the step succeeded.
- Parameters:
stepInfo- the step info to log.
-
interceptAfterWithError
Unit interceptAfterWithError(StepInfo stepInfo, Throwable error)
Takes a screenshot of the screen on which the step falied.
- Parameters:
stepInfo- the step info to log.error- the error occurred to use in screenshots name.
-
-
-
-