Package 

Class AdbServerImpl

  • All Implemented Interfaces:
    com.kaspersky.kaspresso.device.server.AdbServer

    
    public final class AdbServerImpl
     implements AdbServer
                        

    The implementation of AdbServer interface. Encapsulates all work with adb server. Please, pay attention to the field AdbServerLogsType that provides several types to show logs from adb-server (device part). More details are available in AdbServerLogsType.

    • Method Summary

      Modifier and Type Method Description
      List<String> performCmd(Array<Out String> commands) Executes shell commands blocking current thread.
      List<String> performAdb(Array<Out String> commands) Performs adb commands blocking current thread.
      List<String> performShell(Array<Out String> commands) Performs shell commands blocking current thread.
      Unit disconnectServer() Disconnect from AdbServer.
      • Methods inherited from class com.kaspersky.kaspresso.device.server.AdbServer

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdbServerImpl

        AdbServerImpl(LogLevel logLevel, UiTestLogger logger)
    • Method Detail

      • performCmd

         List<String> performCmd(Array<Out String> commands)

        Executes shell commands blocking current thread. Please be aware! If any command that is in @param commands failed then AdbServerException will be thrown

        Required Permissions: INTERNET.

        Parameters:
        commands - commands to execute.
      • performAdb

         List<String> performAdb(Array<Out String> commands)

        Performs adb commands blocking current thread. Please be aware! If any command that is in @param commands failed then AdbServerException will be thrown

        Required Permissions: INTERNET.

        Parameters:
        commands - commands to execute.
      • performShell

         List<String> performShell(Array<Out String> commands)

        Performs shell commands blocking current thread. Please be aware! If any command that is in @param commands failed then AdbServerException will be thrown

        Required Permissions: INTERNET.

        Parameters:
        commands - commands to execute.
      • disconnectServer

         Unit disconnectServer()

        Disconnect from AdbServer. The method is called by Kaspresso after each test.