Animations
You can turn off device animations during a test run. On Android this works by zeroing the three system animation scales (window, transition, animator) via adb. On iOS this enables the Reduce Motion accessibility setting.
Usage
Whole upload
Pass the flag on dcd cloud:
dcd cloud ... --disable-animationsOr set it once in the workspace config.yaml:
platform:
android:
disableAnimations: true
ios:
disableAnimations: truePer test (both platforms)
Override the upload-wide setting for a single flow via the DeviceCloud env variable:
# in your test.yaml
appId: my.app
env:
DEVICECLOUD_OVERRIDE_DISABLE_ANIMATIONS: true
---
# test stepsPer test, platform-specific
When the same flow YAML runs on both Android and iOS, you can target each platform independently. Use this when animations cause problems on one platform but you want them on for the other (for example, animations off on Android to fix scroll/tap flakiness, but on for iOS where Reduce Motion changes app appearance):
The other platform's key is ignored — only the one matching the run's platform is consulted.
Precedence
When more than one is set, the most specific wins:
DEVICECLOUD_OVERRIDE_<PLATFORM>_DISABLE_ANIMATIONS(per test, this platform)DEVICECLOUD_OVERRIDE_DISABLE_ANIMATIONS(per test, both platforms)The upload-wide
--disable-animationsflag orconfig.yamlDefault: animations are on
A false override is honoured the same as true — a test can opt out even when the upload-wide flag is set.
Last updated