如何使用和调试 android UIAutomator

2025-03-13 23:59:22
推荐回答(1个)
回答1:

1.导入UiAutomatorHelper.Java
下载地址:点击打开链接
2.在测试类中添加主函数
public static void main(String[] args){
String jarName,testClass, testName,androidId;
jarName="test1";//生成的jar包名
testClass="com.li.test1";//测试包名
testName="testDemo";//测试类名
androidId="1";//对应androidSDK版本

new UiAutomatorHelper(jarName, testClass, testName, androidId);
}
3.直接点击运行~~

http://blog.csdn.net/lihongjian944043440/article/details/50327239