如何在运行移动测试时避免错误:原始错误:套接字挂断

发布于 2025-02-11 20:21:27 字数 315 浏览 0 评论 0原文

我的Android测试正在Appium docker image上通过Jenkins运行,但是每次都会导致此错误:

Original error: Could not proxy command to the remote server. Original error: socket hang up

我尝试过的内容:

  1. 更新所有二进制文件和Appium版本,
  2. 实现了动态端口更改实现的动态端口更改
  3. ,以退出/关闭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:

  1. Updated all binaries and appium version
  2. Implemented dynamic port change
  3. Implemented listener to quit/close app

Don't know what causes it and what to do.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦中的蝴蝶 2025-02-18 20:21:27

我在使用时得到了这个问题
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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文