Package 

Class TestRunnerScreenshotWatcherInterceptor

    • Method Summary

      Modifier and Type Method Description
      Unit onTestStarted(TestInfo testInfo)
      Unit onAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable) Takes a screenshot of the screen on which the "after" section failed.
      Unit onBeforeSectionFinishedFailed(TestInfo testInfo, Throwable throwable) Takes a screenshot of the screen on which the "before" section failed.
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.impl.screenshot.TestRunnerScreenshotWatcherInterceptor

        onAfterSectionFinishedSuccess, onAfterSectionStarted, onBeforeSectionFinishedSuccess, onBeforeSectionStarted, onMainSectionFinishedFailed, onMainSectionFinishedSuccess, onMainSectionStarted, onTestFinished
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.TestRunWatcherInterceptor

        setBaseTestContext
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.TestContextHolder

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestRunnerScreenshotWatcherInterceptor

        TestRunnerScreenshotWatcherInterceptor(Screenshots screenshots)
    • Method Detail

      • onAfterSectionFinishedFailed

         Unit onAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable)

        Takes a screenshot of the screen on which the "after" section failed.

        Parameters:
        testInfo - the test info to use in screenshots name.
        throwable - the error occurred to use in screenshots name.
      • onBeforeSectionFinishedFailed

         Unit onBeforeSectionFinishedFailed(TestInfo testInfo, Throwable throwable)

        Takes a screenshot of the screen on which the "before" section failed.

        Parameters:
        testInfo - the test info to use in screenshots name.
        throwable - the error occurred to use in screenshots name.