Appium 自动化测试不稳定,总是运行一段时间后
发布网友
发布时间:2022-11-19 09:54
我来回答
共1个回答
热心网友
时间:2024-11-24 02:30
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
然后在重新执行就可以了。