Appium 自动化测试不稳定,总是运行一段时间后

2020-02-19  本文已影响0人  小蜜蜂_a7be

1、报错:

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up

解决方案:添加:

desired_caps['newCommandTimeout'] =6000

self.driver.implicitly_wait(15)

2、报错:

Try to increase the 90000ms adb execution timeout represented by 'adbExecTimeout' capability

解决方案:添加:desired_caps['adbExecTimeout'] =200000

3、报错:

error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

解决方案:

需要用命令卸载Appium Settings

adb uninstall io.appium.uiautomator2.server.test

然后在重新执行就可以了。

上一篇 下一篇

猜你喜欢

热点阅读