我试图从命令行启动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,但没有任何人阐明现有的解决方案。
如何找到正确的型号?
发布于 2019-04-19 12:29:02
根据gcloud firebase test android run documentation,您可以使用以下命令找到MODEL_ID列表:
gcloud firebase test android models list所以使用--device model=Pixel2参数而不是像素。
https://stackoverflow.com/questions/55756628
复制相似问题