appium报错

 1.An unknown server-side error occurred while processing the command. Original error: Cannot find any free port in range 8200..8299}. Please set the available port number by providing the systemPort capability or double check the processes that are locking ports within this range and terminate these which are not needed anymore  

设备上的Proxy代理被上次自动化运行占用未被释放导致的
一般Node.js提供的HttpServer默认设置了超时时间为2分钟,当一个请求的处理时间超过2分钟,HttpServer会自动将该请求的socket关闭掉,于是客户端便收到了 ECONNRESET 的错误信息了;当然这里不是因为时间的问题 是直接报超时error ,主要的原因就是HttpServer进程被上次自动化一直占用,所以会导致一运行就会报ECONNRESET 的错误,由于uiautomator对应的端口全被占用了,一般重启设备或删除Appium的所属App即可这个报错是由于uiautomator对应的端口全被占用了,重启手机即可

2.

selenium.common.exceptions.WebDriverException: Message: An unknown server-side e
rror occurred while processing the command. Original error: Error getting device
API level. Original error: Error executing adbExec. Original error: 'Command 'C
:\\android-sdk\\android-sdk-windows\\platform-tools\\adb.exe -P 5037 -s e20b976b
7d44 shell getprop ro.build.version.sdk' timed out after 20000ms'. Try to increa
se the 20000ms adb execution timeout represented by 'adbExecTimeout' capability

 

posted @ 2020-07-15 15:06  爱洗澡的猫妹  阅读(1306)  评论(0编辑  收藏  举报