gpt4 book ai didi

appium - Travis CI - 无法删除端口转发错误执行 adbExec

转载 作者:行者123 更新时间:2023-12-04 08:53:54 25 4
gpt4 key购买 nike

我正在尝试使用 Appium(npm 版本)为 android 应用程序设置自动化测试,但我不断收到错误消息
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/usr/local/android-sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''

我已经在 google 周围看了很长时间,但还没有找到任何对我有用的解决方案,到目前为止总共有 50 个失败的构建。

如果我在我的本地机器上运行命令它工作正常,但不幸的是在 travis 中我没有这样的运气。我是设置 appium 的新手,所以它可能是我不理解的小事。

A gist of my travis.yml file is here

分配:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

提前致谢。

最佳答案

tcp:8200没有转发,也不应该有转发。

试试 adb forward --remove-all ,当不知道它是哪个端口时

...如果甚至需要删除任何转发。

关于appium - Travis CI - 无法删除端口转发错误执行 adbExec,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53859379/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com