错误:(gcloud.firebase.test.android.run)'Pixel'不是有效的模型

时间:2019-04-19 04:29:02

标签: gcloud firebase-test-lab

我尝试从命令行启动FireBase测试实验室,但出现错误:

ERROR: (gcloud.firebase.test.android.run) 'Pixel' is not a valid model

这是我尝试运行命令的方式:

gcloud firebase test android run \
--app app/build/outputs/apk/debug/app-debug.apk \
--test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--timeout 30m \
--results-bucket "locusmaps-android-sdk" \
--test-targets "com.locuslabs.android.sdk.TestUITest#testTapMapLabelRentalCarCenter" \
--use-orchestrator \
--device model=Pixel,version=27,locale=en_US,orientation=portrait \
--num-flaky-test-attempts 2 \
--environment-variables numShards=2,shardIndex=0

我可以找到的唯一对此错误的参考是some source code,但是没有任何人提出过现有的解决方案。

如何找到正确的型号?

1 个答案:

答案 0 :(得分:1)

根据gcloud firebase test android run documentation,您可以使用以下命令找到MODEL_ID的列表:

gcloud firebase test android models list

因此,使用--device model=Pixel2参数代替Pixel。