悠悠小仙仙 发表于 2019-3-1 15:24:49

uiautomator runtest命令行向jar文件传参

命令行如下:adb shell uiautomator runtestTest.jar <span style="box-sizing: inherit;">-e runtype repeat</span> -c com.yuchaolee.lau.MyTest.MTest
里面有个参数e,后跟的runtype和repeat分别是值的key和value。代码段:public void testLau() throws Exception {
                Bundle bundle = getParams();
                String runType = bundle.getString("runtype");
                System.out.println(runType);
}

页: [1]
查看完整版本: uiautomator runtest命令行向jar文件传参