-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.interceptors.watcher.kautomator.DeviceWatcherInterceptor,com.kaspersky.kaspresso.interceptors.watcher.kautomator.KautomatorWatcherInterceptor
public final class LoggingDeviceWatcherInterceptor implements DeviceWatcherInterceptor
The implementation of DeviceWatcherInterceptor that logs info about UiDeviceAssertion or UiDeviceAction and UiDeviceInteraction on which its activities are performing.
-
-
Constructor Summary
Constructors Constructor Description LoggingDeviceWatcherInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description UnitinterceptCheck(UiDeviceInteraction interaction, UiOperation<UiDevice> assertion)Writes info to logger. UnitinterceptPerform(UiDeviceInteraction interaction, UiOperation<UiDevice> action)Writes info to logger. -
-
Constructor Detail
-
LoggingDeviceWatcherInterceptor
LoggingDeviceWatcherInterceptor(UiTestLogger logger)
-
-
Method Detail
-
interceptCheck
Unit interceptCheck(UiDeviceInteraction interaction, UiOperation<UiDevice> 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(UiDeviceInteraction interaction, UiOperation<UiDevice> 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
-
-
-
-