appiumdesktop+And配置环境

步骤一:

1.安装appiumdesktop:https://github.com/appium/appium-desktop/releases

2.安装JDK

3.安装安卓SDK(有很多坑,安装完成后根本下载不了里面的内容,从网上也查了好多,但是似乎没有什么用,最后幸好自己之前存过,直接粘贴过去了,但是还是存在版本低的问题)

4.安装Node.js

配置环境变量:https://blog.csdn.net/u010381752/article/details/81874273

 步骤二:

启动appiumdesktop,然后填写参数,使用安卓版本7.0的在手机上安装不上uiautomation,小米6.0越狱机安装上了appium setting和uiautomaition工具,如图

 点击开始,进入下图页面:

中间出现了问题:

 上网查到解决方法:https://blog.csdn.net/abcnull/article/details/106752537

  因为安卓 6 是比较老的版本,使用的是 UIAutomator1,新安卓系统使用 UIAutomator2,可能新版本的 appium 默认使用了 2 吧。所以新版本的 appium 在使用时候在开启 inspector 的时候要多传一个参数automationName=UiAutomator1这样最终就可以正常开启!

 开心死了,终于可以研究代码了

 参考博客:https://www.cnblogs.com/yoyoketang/p/7608613.html

https://testerhome.com/topics/10029

原文地址:https://www.cnblogs.com/victory-0315/p/13365767.html