execute

fun execute(instrumentation: Instrumentation, command: String): String

Helper method to execute a command using uiAutomation

Return

The output of the command, returned by uiAutomation

Parameters

instrumentation

The instrumentation used for automated testing

command

The command to execute