运行UI自动化脚本报错,和appium server连接出现问题

运行脚本报错:
An unknown server-side error occurred while processing the command. Original error: Could not find 'adb' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
解决办法:
在终端使用命令行启动Appium(命令行:open /Applications/Appium.app/Contents/MacOS/Appium,我用的是Mac)
后续正常启动都可以正常建立连接。

猜你喜欢

转载自www.cnblogs.com/fatCat1/p/12667916.html