Automation 无法创建新的远程会话

Automation 无法创建新的远程会话,automation,appium,Automation,Appium,我正在使用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:

我正在使用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

请使用管理员权限运行您的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

现在,运行您的测试用例并通知我。

请在具有管理员权限的情况下运行您的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

现在,运行您的测试用例并让我知道。

请不要通过破坏您的帖子为其他人做更多的工作。通过在Stack Overflow上发布,您已经在for Stack Overflow下授予了分发该内容的不可撤销的权利。根据堆栈溢出策略,任何故意破坏行为都将恢复。如果你想了解更多关于删除帖子的信息,请查看“请不要通过破坏你的帖子为其他人做更多的工作”。通过在Stack Overflow上发布,您已经在for Stack Overflow下授予了分发该内容的不可撤销的权利。根据堆栈溢出策略,任何故意破坏行为都将恢复。如果您想了解有关删除帖子的更多信息,请查看您的appium服务器日志以了解测试失败的确切原因。您可以查看appium服务器日志以了解测试失败的确切原因。