命令行如下:
adb shell uiautomator runtest Test.jar -e runtype repeat -c com.yuchaolee.lau.MyTest.MTest
里面有个参数e,后跟的runtype和repeat分别是值的key和value。
代码段:
1
2
3
4
5
|
public
void
testLau()
throws
Exception {
Bundle bundle = getParams();
String runType = bundle.getString(
"runtype"
);
System.out.println(runType);
}
同时我们这里会涉及到几个重要的类,我们这里先列出来给大家有一个初步的印象:
|