-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.interceptors.watcher.kautomator.KautomatorWatcherInterceptor,com.kaspersky.kaspresso.interceptors.watcher.kautomator.ObjectWatcherInterceptor
public final class LoggingObjectWatcherInterceptor implements ObjectWatcherInterceptor
The implementation of ObjectWatcherInterceptor that logs info about UiObjectAssertion or UiObjectAction and UiObjectInteraction on which its activities are performing.
-
-
Constructor Summary
Constructors Constructor Description LoggingObjectWatcherInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description UnitinterceptCheck(UiObjectInteraction interaction, UiOperation<UiObject2> assertion)Writes info to logger. UnitinterceptPerform(UiObjectInteraction interaction, UiOperation<UiObject2> action)Writes info to logger. -
-
Constructor Detail
-
LoggingObjectWatcherInterceptor
LoggingObjectWatcherInterceptor(UiTestLogger logger)
-
-
Method Detail
-
interceptCheck
Unit interceptCheck(UiObjectInteraction interaction, UiOperation<UiObject2> assertion)
Writes info to logger.
- Parameters:
interaction- a Kautomator UiInteraction on which assertion is performedassertion- responsible for performing an activity (assertion) on the given interaction
-
interceptPerform
Unit interceptPerform(UiObjectInteraction interaction, UiOperation<UiObject2> action)
Writes info to logger.
- Parameters:
interaction- a Kautomator UiInteraction on which action is performedaction- responsible for performing an activity (action) on the given interaction
-
-
-
-