# Method: projects.locations.integrations.versions.testCases.execute

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.request_body)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.ExecuteTestCasesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/execute#try-it)

Executes all test cases in an integration version.

### HTTP request

`POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*/integrations/*/versions/*}/testCases:execute`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource whose test cases are executed. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integrationVersion} |

### Request body

The request body must be empty.

### Response body

Response for testCases.execute.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "executeTestCaseResponses": [ { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse`) } ] } ``` |

| Fields ||
|---|---|
| `executeTestCaseResponses[]` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse`)`` Results of each execution of test cases in an integration version. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `integrations.testCases.invoke`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).