美文网首页
Appium 自动化测试不稳定,总是运行一段时间后

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

作者: 小蜜蜂_a7be | 来源:发表于2020-02-19 14:08 被阅读0次

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

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

相关文章

网友评论

      本文标题:Appium 自动化测试不稳定,总是运行一段时间后

      本文链接:https://www.haomeiwen.com/subject/nqgifhtx.html