Test Lab の使用量レベル、割り当て、料金
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Firebase Test Lab と Android デバイス ストリーミングは Cloud APIs の割り当てとテスト割り当てを提供します。これらは標準の Spark と Blaze の料金プランに含まれています。これらの割り当ては、プロジェクトにおけるテストリソース、デバイス リソース、または Cloud APIs の使用量に基づいています。
これらの割り当ては、サイトレベルではなくプロジェクト レベルで適用されます。これらの上限は、すべての API(インストルメンテーション テスト、Robo テスト、ゲームループ テストを含む)とテストマトリックスで共有されます。テストを実行すると、Firebase コンソールのテスト実行とテスト マトリックスの結果で実行時間(テストの実行にかかった時間)を確認できます。Android デバイス ストリーミングを使用する場合は、Android Studio または Google Cloud コンソールでプロジェクトの使用状況を確認できます。実行時間は各デバイスの横に表示されます。Blaze プランの場合、課金にはテストの実行時間が使用されます。
割り当て
テストの割り当て
Test Lab のテストの割り当ては、1 日あたりのテスト実行数で測定します。
Spark プラン(無料): リソース上限は、合計で 1 日あたり最大 15 件のテスト実行です。
Blaze プラン: Blaze プランのすべてのプロジェクトで同じ割り当てが使用されるわけではありません。時間の経過とともに Google Cloud の使用量が増加した場合、それに応じて割り当てを増やすことができます。使用量の大幅な増加が見込まれる場合は、事前に割り当ての調整をリクエストできます。
料金は、テストの実行にかかった時間(分)で計算されます。Blaze プランは、Spark プランで提供されるリソース上限と同じように無料時間の上限から始まります。
これらの上限を超えると、次の時間単位で課金されます。
各実機につき 1 時間あたり $5
各仮想デバイスにつき 1 時間あたり $1
料金は分単位で計算され、端数は切り上げられます。たとえば、22 秒のテストには 1 分間の料金、75 秒のテストには 2 分間の料金が課金されます。テストの実行に要した時間に対してのみ課金されます(アプリのインストールとテスト結果の収集にかかる時間は課金されません)。
テストの割り当て使用量は、Google Cloud コンソールでモニタリングできます。
Cloud APIs の割り当て
Testing API と Tool Results API には、プロジェクトごとの 1 日あたりのリクエスト数と、プロジェクトごとの 1 分あたりのリクエスト数の、2 つの上限があります。
Cloud Testing API の上限(Android デバイス ストリーミングの呼び出しを含む):
- 1 日あたり 10,000,000 回の呼び出し
- 1 分間隔ごとに 120,000 回の呼び出し
この API の使用状況は、Google Cloud コンソールでモニタリングできます。
Cloud Tool Results API の上限:
- 1 日あたり 200,000 回の呼び出し
- 1 分間隔ごとに 2,400 回の呼び出し
この API の使用状況は、Google Cloud コンソールでモニタリングできます。
Android デバイス ストリーミングの割り当て
- (無料)Spark プラン: プロジェクトあたり 1 か月あたり 30 分の無料分
- Blaze プラン: プロジェクトあたり 1 か月あたり 30 分の無料分、追加分数ごとに 15 セント
Blaze プランのすべてのプロジェクトで同じ割り当てが使用されるわけではありません。時間の経過とともに Google Cloud コンソールの使用量が増加した場合、それに応じて割り当てを増やすことができます。使用量の大幅な増加が見込まれる場合は、事前に割り当ての調整をリクエストできます。
割り当てを増やす
Cloud APIs または Blaze プランのテスト割り当ての上限に達した場合は、次のいずれかの方法で上限の引き上げをリクエストできます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-16 UTC。
[null,null,["最終更新日 2025-08-16 UTC。"],[],[],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)."]]