-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.failure.FailureLoggingProvider,com.kaspersky.kaspresso.interceptors.behavior.BehaviorInterceptor,com.kaspersky.kaspresso.interceptors.behavior.WebBehaviorInterceptor
public final class FailureLoggingWebBehaviorInterceptor implements WebBehaviorInterceptor, FailureLoggingProvider
The implementation of WebBehaviorInterceptor and FailureLoggingProvider interfaces. Provides failure logging functionality for Web.WebInteraction.perform and Web.WebInteraction.check calls.
By default, this interceptor is not used in Kaspresso. If you desire to change result log (especially in case of an error) we recommend to use FailureLoggingProvider directly
-
-
Constructor Summary
Constructors Constructor Description FailureLoggingWebBehaviorInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description <T extends Any> Tintercept(Web.WebInteraction<?> interaction, Function0<T> action)Wraps the given action invocation with the failure logging. -
Methods inherited from class com.kaspersky.kaspresso.interceptors.behavior.BehaviorInterceptor
equals, hashCode, toString -
Methods inherited from class com.kaspersky.kaspresso.interceptors.behavior.impl.failure.FailureLoggingWebBehaviorInterceptor
logDescriptionAndThrow, logStackTrace, withLoggingOnFailure -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FailureLoggingWebBehaviorInterceptor
FailureLoggingWebBehaviorInterceptor(UiTestLogger logger)
-
-
-
-