-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.interceptors.watcher.testcase.TestContextHolder,com.kaspersky.kaspresso.interceptors.watcher.testcase.TestRunWatcherInterceptor
public final class TestRunLoggerWatcherInterceptor implements TestRunWatcherInterceptor
The implementation of the TestRunWatcherInterceptor interface. Logs TestInfo on each section event.
-
-
Constructor Summary
Constructors Constructor Description TestRunLoggerWatcherInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description UnitonBeforeSectionStarted(TestInfo testInfo)Logs the given testInfo on "before" section starts. UnitonBeforeSectionFinishedFailed(TestInfo testInfo, Throwable throwable)Logs the given testInfo on "before" section finishes with failure. UnitonMainSectionStarted(TestInfo testInfo)Logs the given testInfo on "main" section starts. UnitonAfterSectionStarted(TestInfo testInfo)Logs the given testInfo on "after" section starts. UnitonAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable)Logs the given testInfo on "after" section finishes with failure. UnitonTestFinished(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
-
onBeforeSectionStarted
Unit onBeforeSectionStarted(TestInfo testInfo)
Logs the given testInfo on "before" section starts.
- Parameters:
testInfo- the test info to log.
-
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.
-
-
-
-