本文介绍了在 Amazon Device Farm 测试中禁用视频录制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Calabash 和 Amazon Device Farm 在 iOS 应用上运行一些测试.测试在本地模拟器上运行良好,但是当我尝试在服务器上执行它们时,它会引发超时异常.

I'm trying to run some tests on a iOS app using Calabash and Amazon Device Farm. The tests run fine on the local simulator but when I try to execute them on the server it throws timeout exceptions.

我进入游览屏幕失败:等待元素超时:* id: 'welcome_login_button' (Calabash::Cucumber::WaitHelpers::WaitError)

我认为这可能是视频录制导致的性能问题,所以我想知道是否有办法禁用它,以查看使用此平台是否适合测试大型 iOS 应用程序.亚马逊关于此主题的技术帮助不包含此信息.

I think it may be a performance issue caused by the video recording so I want to know if there is a way to disable it in order to see if using this platform is viable for testing a large iOS app. The Amazon technical help on this subject doesn't include this information.

谢谢.

推荐答案

您可以使用 Device Farm CLI 禁用视频录制.在测试 JSON 对象内部,有一个用于指定键值参数的属性.您可以将video_recording"键设置为 false.

You can disable video recording by using the Device Farm CLI. Inside the test JSON object, there is an attribute for specifying key-value parameters. You can set the "video_recording" key to false.

这是一个没有填写任何 ARN 的示例:

Here is an example without any ARNs filled in:

aws devicefarm schedule-run --project-arn YourProjectArn --app-arn YourApplicationArn --device-pool-arn YourDevicePoolArn --name MyTestRun --test '{"type": "CALABASH","testPackageArn":"YourTestPackageArn","parameters": {"video_recording": "false"}}'

相关链接:安排运行 CLI 文档

干杯,

迈克尔

这篇关于在 Amazon Device Farm 测试中禁用视频录制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 12:44