-
- 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.
-
-
Constructor Summary
Constructors Constructor Description AdbServerImpl(LogLevel logLevel, UiTestLogger logger)
-
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. UnitdisconnectServer()Disconnect from AdbServer. -
-
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.
-
-
-
-