appium运行报错Add `clearSystemFiles` capability if wanted. 和socket hang up的解决

1. socket hang up

频繁执行脚本时,或者批量执行unittest用例,可能会出现如下报错:

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

尝试过的解决办法有:

1).重启手机,之后没有出现

或者

2).卸载appium,卸载app ,再重新安装appium,安装app,运行之后没有报错

请参考https://testerhome.com/topics/11403?locale=en

寻求根本解决办法中

2. Add `clearSystemFiles` capability if wanted. 

重新卸载appium再安装 可以运行了。

原文地址:https://www.cnblogs.com/fengye151/p/12096303.html