'Run Android preset in TestLab though gcloud CLI

I'm having TestLab preset for our testing device matrix and I would like to target run this preset through the gcloud CLI (https://firebase.google.com/docs/test-lab/android/command-line) Am I blind or is there no way to do that?



Solution 1:[1]

You'd have to convert the preset to option --device items:

gcloud firebase test android run \
  --type instrumentation \

  --app app-debug-unaligned.apk \
  --test app-debug-test-unaligned.apk \

  --device model=Nexus6,version=21,locale=en,orientation=portrait \
  --device model=Nexus7,version=19,locale=fr,orientation=landscape \
  --device ...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Martin Zeitler