51Testing软件测试论坛
标题:
uiautomator runtest命令行向jar文件传参
[打印本页]
作者:
悠悠小仙仙
时间:
2019-3-1 15:24
标题:
uiautomator runtest命令行向jar文件传参
命令行如下:
adb shell uiautomator runtest Test.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);
}
复制代码
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2