gpt4 book ai didi

ios - Xamarin UI 测试 : Calabash not linked

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:33:55 26 4
gpt4 key购买 nike

一点背景。我们目前有一个 iOS Xamarin 应用程序以及一套通过 Xamarin.UITests 进行的自动化测试。这些测试在我的本地机器上运行良好,但在 Jenkins(远程 macmini)中运行时,14 个测试中有 1 个失败并出现此错误:

System.Exception: Unable to contact test backend running in app. A common cause is that the app is not properly linked with Calabash. Please verify that it includes the Calabash component

这就是困扰我的问题:为什么它只在一次测试中失败?如果 Calabash 没有正确链接,那么一切都应该失败。为什么这在我们的构建机器/jenkins 上失败,但在本地却没有。我检查了单声道、xamarin 和 uitest 版本。唯一的区别是 OS X 版本,但我的同事运行与构建机器相同的版本,并且在本地运行测试没有失败。

这不是一个明确的问题,但这是我目前所知道的。有没有其他人遇到过这种情况?

最佳答案

好的,我想我已经解决了问题。在这些失败运行中,应用程序的构建和启动速度不够快,因此 calabash 服务器没有运行。这就是导致问题的原因。

关于ios - Xamarin UI 测试 : Calabash not linked,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35654783/

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