如何在 aws devicefarm 中为 android espresso 测试禁用动画

How to disable animation in aws devicefarm for android espresso test

我正在 运行对 AWS DeviceFarm 进行一些 android 测试,并希望禁用动画。我遇到了这个 discussion,一个人建议传递 --no-window-animation 参数。我无法弄清楚将此参数传递到哪里以及如何传递?

来自论坛的评论:

Hi Mark, we currently pass the argument "–no-window-animation" for instrumentation-based tests, including Espresso. If you believe animations are not disabled for your tests or you're referring to a different setting please let me know so we can investigate. Thanks! Posted by Trent@AWS on October 28, 2015 3:02:16 PM PDT

我已经完成的命令:

谁能帮我禁用动画?谢谢

我在 AWS Device farm 团队工作。

根据您的描述,我假设您正在尝试 运行 Espresso/Instrumentation 测试 Android。

当我们说我们传递参数时,这意味着您不必从任何命令或测试中显式传递参数。当执行检测 运行ner 时,这些参数已经传入。由于您没有在设备场上启动 运行ner,它是由服务为您启动的,带有该参数。

希望这能回答您的问题。