To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Discovery document
A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
POST /v1/{name=projects/*/deviceSessions/*}:cancel
POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections.
GET /v1/{name=projects/*/deviceSessions/*}
GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated.
PATCH /v1/{deviceSession.name=projects/*/deviceSessions/*}
PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-25 UTC."],[],[],null,["# Cloud Testing API\n\nAllows developers to run automated tests for their mobile applications on Google infrastructure.\n\n- [REST Resource: v1.applicationDetailService](#v1.applicationDetailService)\n- [REST Resource: v1.projects.deviceSessions](#v1.projects.deviceSessions)\n- [REST Resource: v1.projects.testMatrices](#v1.projects.testMatrices)\n- [REST Resource: v1.testEnvironmentCatalog](#v1.testEnvironmentCatalog)\n\nService: testing.googleapis.com\n-------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://testing.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://testing.googleapis.com`\n\nREST Resource: [v1.applicationDetailService](/docs/test-lab/reference/testing/rest/v1/applicationDetailService)\n---------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [getApkDetails](/docs/test-lab/reference/testing/rest/v1/applicationDetailService/getApkDetails) | `POST /v1/applicationDetailService/getApkDetails` Gets the details of an Android application APK. |\n\nREST Resource: [v1.projects.deviceSessions](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions)\n-------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [cancel](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions/cancel) | `POST /v1/{name=projects/*/deviceSessions/*}:cancel` POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. |\n| [create](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions/create) | `POST /v1/{parent=projects/*}/deviceSessions` POST /v1/projects/{project_id}/deviceSessions |\n| [get](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions/get) | `GET /v1/{name=projects/*/deviceSessions/*}` GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. |\n| [list](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions/list) | `GET /v1/{parent=projects/*}/deviceSessions` GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. |\n| [patch](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions/patch) | `PATCH /v1/{deviceSession.name=projects/*/deviceSessions/*}` PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask. |\n\nREST Resource: [v1.projects.testMatrices](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices)\n---------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [cancel](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices/cancel) | `POST /v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel` Cancels unfinished test executions in a test matrix. |\n| [create](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices/create) | `POST /v1/projects/{projectId}/testMatrices` Creates and runs a matrix of tests according to the given specifications. |\n| [get](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices/get) | `GET /v1/projects/{projectId}/testMatrices/{testMatrixId}` Checks the status of a test matrix and the executions once they are created. |\n\nREST Resource: [v1.testEnvironmentCatalog](/docs/test-lab/reference/testing/rest/v1/testEnvironmentCatalog)\n-----------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [get](/docs/test-lab/reference/testing/rest/v1/testEnvironmentCatalog/get) | `GET /v1/testEnvironmentCatalog/{environmentType}` Gets the catalog of supported test environments. |"]]