安装先决条件应用程序以在 firebase 测试实验室中测试我们的应用程序

Installing Prerequisite apps for testing our app in firebase Test Lab

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

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

可能吗?

我正在使用 Firebase 测试实验室

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

"beta" 版本的 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