Method: projects.testMatrices.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel.
The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to testMatrices.get.
May return any of the following canonical error codes:
- PERMISSION_DENIED - if the user is not authorized to write to project
- INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices.
HTTP request
POST https://testing.googleapis.com/v1/projects/{projectId}/testMatrices
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
projectId |
string
The GCE project under which this job will run.
|
Query parameters
Parameters |
requestId |
string
A string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended.
|
Request body
The request body contains an instance of TestMatrix
.
Response body
If successful, the response body contains a newly created instance of TestMatrix
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-25 UTC.
[null,null,["Last updated 2024-07-25 UTC."],[],[],null,["# Method: projects.testMatrices.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel.\n\nThe returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to testMatrices.get.\n\nMay return any of the following canonical error codes:\n\n- PERMISSION_DENIED - if the user is not authorized to write to project\n- INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices.\n\n### HTTP request\n\n`POST https://testing.googleapis.com/v1/projects/{projectId}/testMatrices`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------|\n| `projectId` | `string` The GCE project under which this job will run. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestId` | `string` A string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended. |\n\n### Request body\n\nThe request body contains an instance of [TestMatrix](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices#TestMatrix).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [TestMatrix](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices#TestMatrix).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]