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]