Test Lab 的用量等級、配額和定價
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Firebase Test Lab 和 Android 裝置串流提供 Cloud API 配額和測試配額,這些配額包含在標準 Spark 和 Blaze 定價方案中。配額會根據專案的測試資源、裝置資源或 Cloud API 用量而定。
這些配額是套用至專案層級,而非網站層級。這些限制適用於所有 API (包括檢測設備測試、Robo 測試和遊戲迴圈測試) 和測試矩陣。執行測試時,您可以在 Firebase 控制台的「測試執行和測試矩陣結果」下方,查看測試的執行時間 (即測試執行的時間)。使用 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 配額
測試和工具結果 API 有兩項 API 限制:每個專案的每日要求數,以及每個專案的每分鐘要求數。
Cloud Testing API 限制 (包括 Android 裝置串流的呼叫):
- 每天 10,000,000 次呼叫
- 每分鐘間隔 120,000 次呼叫
您可以在 Google Cloud 控制台中監控這項 API 的用量。
Cloud Tool Results API 限制:
您可以在 Google Cloud 控制台中監控這項 API 的用量。
Android 裝置串流配額
- (免付費) Spark 方案:每個專案每月可免付費使用 30 分鐘
- Blaze 方案:每項專案每月 30 分鐘免付費,每額外 1 分鐘 15 美分
Blaze 方案中各專案的配額可能不同。隨著您對 Google Cloud 控制台的使用量增加,配額也可能會隨之增加。如果您預期用量將大幅攀升,可以主動要求調整配額。
提高配額
如果已達到 Cloud API 或 Blaze 方案的測試配額,請採取下列任一做法,要求提高限制:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[],[],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)."]]