安装必备应用程序以在Firebase测试实验室中测试我们的应用程序

时间:2019-02-05 14:51:04

标签: android firebase testing firebase-test-lab

在开始测试我们的应用程序之前,我们如何在测试过程中使用的设备(robotests ...)中安装其他应用程序?

我的意思是我的应用程序需要在设备中安装其他一些应用程序才能完全正确地工作。

有可能吗?

我正在使用Firebase测试实验室

1 个答案:

答案 0 :(得分:2)

您无法通过Firebase网络控制台上传其他APK,但也可以使用gcloud command-line app与测试实验室进行交互。

gcloud命令行的“测试版”具有添加其他APK的选项。如果您运行

gcloud beta firebase test android run --help

您会发现以下选项,可让您安装更多apk:

 --additional-apks=APK,[APK,...]
    A list of up to 100 additional APKs to install, in addition to those
    being directly tested. The path may be in the local filesystem or in
    Google Cloud Storage using gs:// notation.

以下是有关如何使用它来开始测试的示例:

gcloud beta firebase test android run \
    --app=build/outputs/apk/debug/app-debug.apk \
    --test=build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
    --device model=walleye,version=28 \
    --additional-apks=path/to/another.apk