Test Lab 的用量级别、配额和价格
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Firebase Test Lab 和 Android 设备串流功能提供 Cloud API 配额和测试配额。这些配额包含在标准 Spark 和 Blaze 定价方案中,并基于您项目的测试资源用量、设备资源用量或 Cloud API 用量。
这些配额是项目级配额,而非站点级配额。这些限制由所有 API(包括插桩测试、Robo 测试和游戏循环测试)和测试矩阵共享。运行测试时,您可以在 Firebase 控制台中的 Test execution and test matrix results(测试作业和测试矩阵结果)下查看其运行时间(即测试运行所花的时间)。使用 Android 设备串流功能时,您可以在 Android Studio 或 Google Cloud 控制台中查看项目的用量。运行时间显示在每个设备旁边。如果您采用 Blaze 方案,则测试运行时间将用于结算。
配额
测试配额
Test Lab 的测试配额按每天的测试运行次数来计量:
Spark 方案(免费):资源限制以每日测试运行总次数的形式列出,最多每天 15 次:
每天在虚拟设备上运行 10 次测试
每天在实体设备上运行 5 次测试
Blaze 方案:Blaze 方案中的所有项目不一定具有相同的配额。如果您的 Google Cloud 用量随时间增加,您的配额可能也会相应增加。如果您预计自己的用量即将大幅增加,您可以主动申请配额调整。
结算费用按运行测试所用时长(分钟数)计算。Blaze 方案提供初始的免费时间限额,类似于 Spark 方案提供的资源限额:
实体设备上每天 30 分钟的测试时间
虚拟设备上每天 60 分钟的测试时间
对于超出这些限额的用量,将按以下小时费率计费:
每台真机每小时 5 美元
每台虚拟设备每小时 1 美元
费用按分钟计算,向上取整到最接近的分钟数。例如,22 秒的测试按一分钟计费,而 75 秒的测试按两分钟计费。您只需为运行测试的时间付费(安装应用和收集测试结果所用的时间不收费)。
您可以在 Google Cloud 控制台中监控测试配额用量。
Cloud API 配额
Testing API 和 Tool Results API 有两个 API 限制:每项目每天的请求数,以及每项目每分钟请求数。
Cloud Testing API 限制(包括针对 Android 设备串流功能的调用):
- 每天 1000 万次调用
- 每 1 分钟 12 万次调用
您可以在 Google Cloud 控制台中监控此 API 的用量。
Cloud Tool Results API 限制:
- 每天 20 万次调用
- 每 1 分钟 2400 次调用
您可以在 Google Cloud 控制台中监控此 API 的用量。
Android 设备串流配额
- (免费)Spark 方案:每个项目每月免费 30 分钟
- Blaze 方案:每个项目每月可免费使用 30 分钟,超出部分按每分钟 0.15 美元计费
Blaze 方案中的所有项目不一定具有相同的配额。如果您的 Google Cloud 控制台用量随时间增加,您的配额可能也会相应增加。如果您预计自己的用量即将大幅增加,您可以主动申请配额调整。
增加配额
如果您已达到 Cloud API 或 Blaze 方案的测试配额,您可以通过以下操作来申请更高的限额:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-16。
[null,null,["最后更新时间 (UTC):2025-08-16。"],[],[],null,["\u003cbr /\u003e\n\nFirebase Test Lab and [Android Device\nStreaming](https://developer.android.com/studio/run/android-device-streaming)\nprovide a Cloud API quota and a testing quota, which is included in the standard\nSpark and Blaze pricing\nplans. These quotas are based on your project's usage of the [testing\nresource](#testing-quota), [device resource](#device-streaming) or [Cloud\nAPI](#cloud-api-quota).\n\nThese quotas are applied project-level, not site-level. These limits are shared\nacross all APIs (including instrumentation tests, Robo tests, and Game Loop\ntests) and test matrixes. When you run a test, you can check its run time (i.e.,\nthe time it takes the test to run) under **Test execution and test matrix\nresults** in the Firebase console. When using Android Device Streaming, you\ncan check your project's usage in either Android Studio or\nGoogle Cloud console. Run times are displayed next to each device. If you're in\nthe Blaze plan, the test run times are used for billing.\n| When your project is on the Blaze pricing plan, [**set up budget alerts**](/docs/projects/billing/avoid-surprise-bills#set-up-budget-alert-emails) using the console. You can use the [Blaze plan calculator](/pricing#blaze-calculator) to estimate your monthly costs.\n|\n| Be aware that **budget alerts do *not* cap your usage or\n| charges** --- they are *alerts* about your costs so that you can\n| take action, if needed. For example, you might consider\n| [using\n| budget notifications to programmatically disable Cloud Billing on a\n| project](https://cloud.google.com/billing/docs/how-to/disable-billing-with-notifications).\n\n**Quotas**\n\nTesting quota\n\nTest Lab's testing quota is measured by the\nnumber of test runs per day:\n\n- **Spark plan (no-cost)**: The resource limits are\n listed for up to 15 test runs per day in total:\n\n - 10 test runs per day on virtual devices\n\n - 5 test runs per day on physical devices\n\n- **Blaze plan** : Not all projects in the Blaze plan have the same quotas. If\n your usage of Google Cloud increases over time, your quotas might increase\n correspondingly. If you expect a sizable upcoming increase in usage, you can\n proactively request [quota adjustments](#increase-cloud-quotas).\n\n Billing is calculated by the minutes spent running tests. The Blaze plan\n begins with a no-cost time limit that's similar to the resource limit offered\n by the Spark plan:\n - 30 minutes of test time per day on physical devices\n\n - 60 minutes of test time per day on virtual devices\n\n Any usage above these limits is charged according to the following hourly\n rates:\n - $5 per hour for each physical device\n\n - $1 per hour for each virtual device\n\nCharges are calculated on a per-minute basis, rounded up to the nearest\nminute. For example, a 22-second test is billed for one minute, while a\n75-second test is billed for two minutes. You are charged only for the\ntime spent running tests (the time it takes to install your app\nand collect test results will not be charged).\n\nYou can monitor your testing quota usage in the\n[Google Cloud console](https://console.cloud.google.com/apis/api/testing.googleapis.com/quotas).\n\nCloud API quotas\n\nThe Testing and Tool Results APIs come with two API limits: requests per day per\nproject, and requests per minute per project.\n\n- Cloud Testing API limit (including calls for Android Device Streaming):\n\n - 10,000,000 calls per day\n - 120,000 calls per 1-minute interval\n\n You can monitor your usage of this API in the\n [Google Cloud console](https://console.cloud.google.com/apis/api/testing.googleapis.com/quotas).\n- Cloud Tool Results API limit:\n\n - 200,000 calls per day\n - 2,400 calls per 1-minute interval\n\n You can monitor your usage of this API in the\n [Google Cloud console](https://console.cloud.google.com/apis/api/toolresults.googleapis.com/quotas).\n\nAndroid Device Streaming quotas\n\n- **(no cost) Spark plan**: 30 no cost minutes per project, per month\n- **Blaze plan**: 30 no cost minutes per project, per month, 15 cents for each additional minute\n\nNot all projects in the Blaze plan have the same quotas. If your usage of\nGoogle Cloud console increases over time, your quotas might increase\ncorrespondingly. If you expect a sizable upcoming increase in usage, you can\nproactively request [quota adjustments](/docs/test-lab/usage-quotas-pricing#increase-cloud-quotas).\n\nIncrease quotas\n\nIf you've reached a Cloud API or Blaze plan testing quota, you can request a\nhigher limit by doing one of the following:\n\n- [Submitting an increase request](https://cloud.google.com/docs/quota#requesting_higher_quota)\n directly in the Google Cloud console.\n\n- Contacting [Firebase support](https://support.google.com/firebase/contact/support)."]]