-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.interceptors.watcher.testcase.StepWatcherInterceptor
public final class LoggingStepWatcherInterceptor implements StepWatcherInterceptor
The implementation of the StepWatcherInterceptor interface. Logs StepInfo on each step event.
-
-
Constructor Summary
Constructors Constructor Description LoggingStepWatcherInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description UnitinterceptBefore(StepInfo stepInfo)Logs the given stepInfo on step starts. UnitinterceptAfterWithSuccess(StepInfo stepInfo)Logs the given stepInfo on step finishes with success. UnitinterceptAfterWithError(StepInfo stepInfo, Throwable error)Logs the given stepInfo on step finishes with failure. UnitinterceptAfterFinally(StepInfo stepInfo)Logs the given stepInfo on step finally finishes. -
-
Constructor Detail
-
LoggingStepWatcherInterceptor
LoggingStepWatcherInterceptor(UiTestLogger logger)
-
-
Method Detail
-
interceptBefore
Unit interceptBefore(StepInfo stepInfo)
Logs the given stepInfo on step starts.
- Parameters:
stepInfo- the step info to log.
-
interceptAfterWithSuccess
Unit interceptAfterWithSuccess(StepInfo stepInfo)
Logs the given stepInfo on step finishes with success.
- Parameters:
stepInfo- the step info to log.
-
interceptAfterWithError
Unit interceptAfterWithError(StepInfo stepInfo, Throwable error)
Logs the given stepInfo on step finishes with failure.
- Parameters:
stepInfo- the step info to log.error- the error occurred to log.
-
interceptAfterFinally
Unit interceptAfterFinally(StepInfo stepInfo)
Logs the given stepInfo on step finally finishes.
- Parameters:
stepInfo- the step info to log.
-
-
-
-