-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.failure.FailureLoggingProvider,com.kaspersky.kaspresso.interceptors.behavior.BehaviorInterceptor,com.kaspersky.kaspresso.interceptors.behavior.ViewBehaviorInterceptor
public final class FailureLoggingViewBehaviorInterceptor implements ViewBehaviorInterceptor, FailureLoggingProvider
The implementation of ViewBehaviorInterceptor and FailureLoggingProvider interfaces. Provides failure logging functionality for ViewInteraction.perform and ViewInteraction.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 FailureLoggingViewBehaviorInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description <T extends Any> Tintercept(ViewInteraction 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.FailureLoggingViewBehaviorInterceptor
logDescriptionAndThrow, logStackTrace, withLoggingOnFailure -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FailureLoggingViewBehaviorInterceptor
FailureLoggingViewBehaviorInterceptor(UiTestLogger logger)
-
-
-
-