Package 

Class TestRunLoggerWatcherInterceptor

    • Method Summary

      Modifier and Type Method Description
      Unit onBeforeSectionStarted(TestInfo testInfo) Logs the given testInfo on "before" section starts.
      Unit onBeforeSectionFinishedFailed(TestInfo testInfo, Throwable throwable) Logs the given testInfo on "before" section finishes with failure.
      Unit onMainSectionStarted(TestInfo testInfo) Logs the given testInfo on "main" section starts.
      Unit onAfterSectionStarted(TestInfo testInfo) Logs the given testInfo on "after" section starts.
      Unit onAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable) Logs the given testInfo on "after" section finishes with failure.
      Unit onTestFinished(TestInfo testInfo, Boolean success) Logs the given testInfo on whole test finishes.
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.impl.logging.TestRunLoggerWatcherInterceptor

        onAfterSectionFinishedSuccess, onBeforeSectionFinishedSuccess, onMainSectionFinishedFailed, onMainSectionFinishedSuccess, onTestStarted
      • 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

      • TestRunLoggerWatcherInterceptor

        TestRunLoggerWatcherInterceptor(UiTestLogger logger)
    • Method Detail

      • onBeforeSectionFinishedFailed

         Unit onBeforeSectionFinishedFailed(TestInfo testInfo, Throwable throwable)

        Logs the given testInfo on "before" section finishes with failure.

        Parameters:
        testInfo - the test info to log.
        throwable - the error occurred to log.
      • onMainSectionStarted

         Unit onMainSectionStarted(TestInfo testInfo)

        Logs the given testInfo on "main" section starts.

        Parameters:
        testInfo - the test info to log.
      • onAfterSectionStarted

         Unit onAfterSectionStarted(TestInfo testInfo)

        Logs the given testInfo on "after" section starts.

        Parameters:
        testInfo - the test info to log.
      • onAfterSectionFinishedFailed

         Unit onAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable)

        Logs the given testInfo on "after" section finishes with failure.

        Parameters:
        testInfo - the test info to log.
        throwable - the error occurred to log.
      • onTestFinished

         Unit onTestFinished(TestInfo testInfo, Boolean success)

        Logs the given testInfo on whole test finishes.

        Parameters:
        testInfo - the test info to log.
        success - the while test was finished successfully or not.