Package 

Class LoggingObjectWatcherInterceptor

  • 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.

    • Method Summary

      Modifier and Type Method Description
      Unit interceptCheck(UiObjectInteraction interaction, UiOperation<UiObject2> assertion) Writes info to logger.
      Unit interceptPerform(UiObjectInteraction interaction, UiOperation<UiObject2> action) Writes info to logger.
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.watcher.kautomator.KautomatorWatcherInterceptor

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 performed
        assertion - 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 performed
        action - responsible for performing an activity (action) on the given interaction