快学UIautomator之uiautomatorhelp使用

1、先下载uiautomatorhelp插件

2、把uiautomatorhelp.java包放到自己的项目中

3、项目中引入uiautomatorhelp插件

4、在项目中设置一个main方法,引入uiautomatorhelp

public static void main(String[] args) {
		String jarName = "uiautomatortest";//你要设置的jar包名
		String testClass = "com.xuexi.Test";//(包名.类名)
		String testName = "testDemo";//方法名
		String androidId = "1";//安卓id号
		new UiAutomatorHelper(jarName, testClass, testName, androidId);
	}

  

原文地址:https://www.cnblogs.com/xiaoyaowuming/p/7064983.html