public boolean runtest(){
  cleanTemp();
  CommandLine command=adbCommand("shell","uiautomator","runtest","/data/local/tmp/automator.jar","-c","com.uia.example.my.test");
  String output=executeCommandQuietly(command);
  log.debug("run test {}",output);
  try {
    Thread.sleep(1000);
  }
 catch (  InterruptedException ie) {
    throw new RuntimeException(ie);
  }
  return output.contains("OK");
}

public boolean runtest ( ) { cleanTemp ( ) ; CommandLine command = adbCommand ( "shell" , "uiautomator" , "runtest" , "/data/local/tmp/automator.jar" , "-c" , "com.uia.example.my.test" ) ; String output = executeCommandQuietly ( command ) ; log . debug ( "run test {}" , output ) ; try { Thread . sleep ( 1000 ) ; } catch ( InterruptedException ie ) { throw new RuntimeException ( ie ) ; } return output . contains ( "OK" ) ; }
run command to get dump file
