Mức sử dụng, hạn mức và mức giá cho Phòng thử nghiệm
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Firebase Test Lab và Android Device Streaming (Truyền phát trực tiếp thiết bị Android) cung cấp một hạn mức Cloud API và hạn mức kiểm thử, được đưa vào các gói giá Spark và Blaze tiêu chuẩn. Các hạn mức này dựa trên mức sử dụng tài nguyên kiểm thử, tài nguyên thiết bị hoặc Cloud API của dự án.
Các hạn mức này được áp dụng ở cấp dự án chứ không phải ở cấp trang web. Các giới hạn này được áp dụng cho tất cả các API (bao gồm cả kiểm thử đo lường, kiểm thử Robo và kiểm thử Vòng lặp trò chơi) và ma trận kiểm thử. Khi chạy một kiểm thử, bạn có thể kiểm tra thời gian chạy của kiểm thử (tức là thời gian cần thiết để kiểm thử chạy) trong phần Kết quả thực thi kiểm thử và ma trận kiểm thử trong bảng điều khiển Firebase. Khi sử dụng tính năng Truyền phát trực tiếp thiết bị Android, bạn có thể kiểm tra mức sử dụng của dự án trong Android Studio hoặc bảng điều khiển Google Cloud. Thời gian chạy sẽ xuất hiện bên cạnh mỗi thiết bị. Nếu bạn đang sử dụng gói Blaze, thời gian chạy thử nghiệm sẽ được dùng để tính phí.
Hạn mức
Hạn mức kiểm thử
Hạn mức kiểm thử của Test Lab được đo bằng số lần chạy kiểm thử mỗi ngày:
Gói Spark (miễn phí): Giới hạn tài nguyên được liệt kê cho tối đa 15 lần chạy kiểm thử mỗi ngày:
10 lần chạy thử nghiệm mỗi ngày trên thiết bị ảo
5 lần chạy kiểm thử mỗi ngày trên các thiết bị thực
Gói Blaze: Không phải dự án nào trong gói Blaze cũng có hạn mức như nhau. Nếu mức sử dụng Google Cloud của bạn tăng theo thời gian, thì hạn mức của bạn cũng có thể tăng theo. Nếu dự kiến mức sử dụng sẽ tăng đáng kể trong thời gian tới, bạn có thể chủ động yêu cầu điều chỉnh hạn mức.
Phí được tính theo số phút bạn dành để chạy kiểm thử. Gói Blaze bắt đầu với giới hạn thời gian miễn phí tương tự như giới hạn tài nguyên mà gói Spark cung cấp:
30 phút thời gian kiểm thử mỗi ngày trên các thiết bị thực
60 phút thời gian kiểm thử mỗi ngày trên thiết bị ảo
Mọi mức sử dụng vượt quá các giới hạn này đều được tính phí theo mức giá theo giờ sau đây:
5 USD/giờ cho mỗi thiết bị thực
1 đô la mỗi giờ cho mỗi thiết bị ảo
Phí được tính theo từng phút và làm tròn lên đến phút gần nhất. Ví dụ: một bài kiểm tra dài 22 giây sẽ được tính phí một phút, trong khi một bài kiểm tra dài 75 giây sẽ được tính phí hai phút. Bạn chỉ bị tính phí cho thời gian chạy thử nghiệm (thời gian cần thiết để cài đặt ứng dụng và thu thập kết quả thử nghiệm sẽ không bị tính phí).
Bạn có thể theo dõi hạn mức sử dụng kiểm thử trong bảng điều khiển Google Cloud.
Hạn mức Cloud API
API Kết quả kiểm thử và API Công cụ đi kèm với 2 giới hạn API: số yêu cầu mỗi ngày cho mỗi dự án và số yêu cầu mỗi phút cho mỗi dự án.
Giới hạn Cloud Testing API (bao gồm cả các lệnh gọi cho tính năng Truyền phát trực tiếp thiết bị Android):
10.000.000 lệnh gọi mỗi ngày
120.000 cuộc gọi trong khoảng thời gian 1 phút
Bạn có thể theo dõi mức sử dụng API này trong bảng điều khiển Google Cloud.
Giới hạn Cloud Tool Results API:
200.000 lệnh gọi mỗi ngày
2.400 cuộc gọi trong khoảng thời gian 1 phút
Bạn có thể theo dõi mức sử dụng API này trong bảng điều khiển Google Cloud.
Hạn mức truyền trực tuyến trên thiết bị Android
Gói Spark(miễn phí): 30 phút miễn phí cho mỗi dự án mỗi tháng
Gói Blaze: 30 phút miễn phí cho mỗi dự án mỗi tháng, 15 xu cho mỗi phút bổ sung
Không phải dự án nào trong gói Blaze cũng có hạn mức như nhau. Nếu mức sử dụng bảng điều khiển Google Cloud của bạn tăng theo thời gian, thì hạn mức của bạn cũng có thể tăng theo. Nếu dự kiến mức sử dụng sẽ tăng đáng kể trong thời gian tới, bạn có thể chủ động yêu cầu điều chỉnh hạn mức.
Tăng hạn mức
Nếu đã đạt đến hạn mức kiểm thử Cloud API hoặc gói Blaze, bạn có thể yêu cầu tăng hạn mức bằng một trong những cách sau:
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-09-03 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)."]]