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);
	}

  

相关文章:

  • 2022-02-28
  • 2021-12-26
  • 2022-02-08
  • 2021-10-12
  • 2021-12-04
  • 2021-04-08
  • 2021-08-08
  • 2022-01-07
猜你喜欢
  • 2021-07-06
  • 2022-02-26
  • 2021-09-20
  • 2021-06-21
  • 2021-12-05
  • 2021-07-27
  • 2021-04-07
相关资源
相似解决方案