无法获取匹配的快照:与应用程序的连接丢失

问题描述

我开始使用 AWS DeviceFarm 并尝试将其集成到我的 CI 管道中。最近,当我在设备轮询上运行应用测试时,出现错误

Failed to get matching snapshot: Lost connection to the application (pid 402). (Underlying Error: Couldn’t communicate with a helper application. Try your operation again. If that fails,quit and relaunch the application and try again. The connection to service on pid 0 created from an endpoint was invalidated.)

错误总是发生在特定设备上:运行 iOS 13.6 的 iPad Air 2 和运行 iOS 13.1.3 的 iPhone 11 Pro Max

我使用相同版本的模拟器在本地对其进行了测试,但没有出现任何错误。对我来说,这看起来像是来自环境的东西。

谁能确认是环境问题还是怎么解决

我使用 XCUITest 和 Swift 来编写我的 UI 测试

谢谢:)

解决方法

我是 AWS Device Farm 团队的一名工程师。你介意给我一个运行 url 以便我看看你的测试执行情况吗?

为了获得更好的帮助,我建议使用 AWS Device Farm 论坛作为联系像我这样的服务团队成员的媒介:https://forums.aws.amazon.com/forum.jspa?forumID=193

安迪