Robotium学习(七)- 实现用shell命令执行一些操作的方法

    xiaoxiao2026-03-14  10

    记录robotium用来实现用shell命令去执行一些操作的方法

      public void execShellCommand(String string) {       try{        Runtime run = Runtime.getRuntime();        Process p = run.exec(string);  // 执行一个测试案例      } catch (IOException e) {         e.printStackTrace();}    } 

    转载请注明原文地址: https://ju.6miu.com/read-1307955.html
    最新回复(0)