# ExecuteTestCaseResponse

- [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#SCHEMA_REPRESENTATION)
- [AssertionResult](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionResult)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionResult.SCHEMA_REPRESENTATION)
- [AssertionStatus](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionStatus)
- [State](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#State)

The response for executing a functional test.

| JSON representation |
|---|
| ``` { "executionId": string, "outputParameters": { object }, "assertionResults": [ { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionResult`) } ], "testExecutionState": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#State`) } ``` |

| Fields ||
|---|---|
| `executionId` | `string` The id of the execution corresponding to this run of integration. |
| `outputParameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` OUTPUT parameters in format of Map\<Key,Value\>. Where Key is the name of the parameter. Note: name of the system generated parameters are wrapped by backtick(\`) to distinguish them from the user defined parameters. |
| `assertionResults[]` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionResult`)`` Results of each assertions ran during execution of test case. |
| `testExecutionState` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#State`)`` State of the test case execution |

## AssertionResult

The result of an assertion.

| JSON representation |
|---|
| ``` { "assertion": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases#Assertion`) }, "taskNumber": string, "taskName": string, "status": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionStatus`), "failureMessage": string } ``` |

| Fields ||
|---|---|
| `assertion` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases#Assertion`)`` Assertion that was run. |
| `taskNumber` | `string` Task number of task where the assertion was run. |
| `taskName` | `string` Task name of task where the assertion was run. |
| `status` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/ExecuteTestCaseResponse#AssertionStatus`)`` Status of assertion to signify if the assertion succeeded or failed |
| `failureMessage` | `string` Details of the assertion failure |

## AssertionStatus

Possible values for AssertionStatus

| Enums ||
|---|---|
| `ASSERTION_STATUS_UNSPECIFIED` | Unspecified assertion status |
| `SUCCEEDED` | Assertion succeeded |
| `FAILED` | Assertion failed |

## State

Status of the test case

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Unspecified state |
| `PASSED` | Test case execution passed |
| `FAILED` | Test case execution failed |