我正在使用Appium进行自动化测试。每当我运行它时,在应用程序启动后,我的应用程序都会被杀死。
这是我得到的错误日志:
FAILED CONFIGURATION: @BeforeSuite setUp
org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'IN-6J1QPN2-10', ip: '10.0.75.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_171'
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET
at JWProxy.command
System info: host: 'IN-6J1QPN2-10', ip: '10.0.75.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_171'
Driver info: driver.version: AndroidDriver
答案 0 :(得分:0)
请以管理员权限运行您的appium服务器。启动前,在Appium服务器的“高级”选项卡下启用“允许会话覆盖”标志。之后,运行下面提到的命令。
adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test
另外,如果在Appium的测试设备中安装了“解锁”和“设置”,则可以运行。
adb uninstall io.appium.unlock
adb uninstall io.appium.settings
现在,运行您的测试用例,让我知道。