【Mac+Appium+Python】之用 uiautomator2 启动报错

参数中添加了:

automationName: Uiautomator2

 

运行如下:

[UiAutomator2] Starting UIAutomator2 server 3.1.1
[UiAutomator2] Using UIAutomator2 server from 
'/Users/zhangc/.nvm/versions/node/v10.15.0/lib/node_modules/appium/node_modules/_appium-uiautomator2-server@3.1.1@appium-uiautomator2-server/apks/appium-uiautomator2-server-v3.1.1.apk' and test from
'/Users/zhangc/.nvm/versions/node/v10.15.0/lib/node_modules/appium/node_modules/_appium-uiautomator2-server@3.1.1@appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
appium-uiautomator2-server-v3.1.1.apk 和 appium-uiautomator2-server-debug-androidTest.apk两个apk必须装在真机中
不然会报错。
把电脑中的apk拷贝到手机中安装即可。



参考文章:https://testerhome.com/topics/10333
posted @ 2019-07-16 10:32  Owen_ET  阅读(757)  评论(0编辑  收藏  举报