-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.interceptors.watcher.testcase.TestContextHolder,com.kaspersky.kaspresso.interceptors.watcher.testcase.TestRunWatcherInterceptor
public final class DefaultTestRunWatcherInterceptor implements TestRunWatcherInterceptor
-
-
Constructor Summary
Constructors Constructor Description DefaultTestRunWatcherInterceptor()
-
Method Summary
Modifier and Type Method Description UnitsetBaseTestContext(BaseTestContext context)UnitonBeforeSectionStarted(TestInfo testInfo)UnitonAfterSectionFinishedSuccess(TestInfo testInfo)UnitonAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable)final UnitbeforeEachTest(Boolean override, Function1<BaseTestContext, Unit> action)Set the action which will be executed before the test. final UnitafterEachTest(Boolean override, Function1<BaseTestContext, Unit> action)Set the action which will be executed after the test. -
Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.testcase.impl.defaults.DefaultTestRunWatcherInterceptor
onAfterSectionStarted, onBeforeSectionFinishedFailed, onBeforeSectionFinishedSuccess, onMainSectionFinishedFailed, onMainSectionFinishedSuccess, onMainSectionStarted, onTestFinished, onTestStarted -
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
-
-
Method Detail
-
setBaseTestContext
Unit setBaseTestContext(BaseTestContext context)
-
onBeforeSectionStarted
Unit onBeforeSectionStarted(TestInfo testInfo)
-
onAfterSectionFinishedSuccess
Unit onAfterSectionFinishedSuccess(TestInfo testInfo)
-
onAfterSectionFinishedFailed
Unit onAfterSectionFinishedFailed(TestInfo testInfo, Throwable throwable)
-
beforeEachTest
final Unit beforeEachTest(Boolean override, Function1<BaseTestContext, Unit> action)
Set the action which will be executed before the test. The action has access to BaseTestContext. If you set @param override in false then the final beforeAction will be beforeAction of the parent TestCase plus current @param action. Otherwise final beforeAction will be only @param action.
-
afterEachTest
final Unit afterEachTest(Boolean override, Function1<BaseTestContext, Unit> action)
Set the action which will be executed after the test. The action has access to BaseTestContext. If you set @param override in false then the final beforeAction will be beforeAction of the parent TestCase plus current @param action. Otherwise final beforeAction will be only @param action.
-
-
-
-