Package 

Class ScreenshotStepWatcherInterceptor

    • Method Summary

      Modifier and Type Method Description
      Unit interceptAfterWithSuccess(StepInfo stepInfo) Takes a screenshot of the screen on which the step succeeded.
      Unit interceptAfterWithError(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.