如何在运行移动测试时避免错误:原始错误:套接字挂断
我的Android测试正在Appium docker image上通过Jenkins运行,但是每次都会导致此错误:
Original error: Could not proxy command to the remote server. Original error: socket hang up
我尝试过的内容:
- 更新所有二进制文件和Appium版本,
- 实现了动态端口更改实现的动态端口更改
- ,以退出/关闭App
不知道是什么原因造成的,什么是什么原因做。
I have android tests which are running through jenkins on appium docker image, but everytime causes this error:
Original error: Could not proxy command to the remote server. Original error: socket hang up
What i tried:
- Updated all binaries and appium version
- Implemented dynamic port change
- Implemented listener to quit/close app
Don't know what causes it and what to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在使用时得到了这个问题
appium-server-gui-windows-1.22.3-4,
而Appium-Server-Non-GUI-1.23也有相同的问题
使用Android 11真实设备,
Python3.11,Appium-Python-Client版本2.7.1。
因此,我更改为appium-server-windows-1.21.0-gui,它可以正常运行。
i got this issue when using
Appium-Server-GUI-windows-1.22.3-4,
and the appium-server-non-gui-1.23 has the same issue
with android 11 real device,
python3.11, Appium-python-Client version 2.7.1.
So i change to Appium-Server-windows-1.21.0-GUI, and it works ok.