命令行如下:
adb shell uiautomator runtest Test.jar -e runtype repeat -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);
}