# REST Resource: projects.locations.agents.testCases.results

- [Resource: TestCaseResult](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results#TestCaseResult)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results#TestCaseResult.SCHEMA_REPRESENTATION)
  - [TestResult](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results#TestCaseResult.TestResult)
- [Methods](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results#METHODS_SUMMARY)

## Resource: TestCaseResult

Represents a result from running a test case in an agent environment.

| JSON representation |
|---|
| ``` { "name": string, "environment": string, "conversationTurns": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ConversationTurn`) } ], "testResult": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results#TestCaseResult.TestResult`), "testTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The resource name for the test case result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`. |
| `environment` | `string` Environment where the test was run. If not set, it indicates the draft environment. |
| `conversationTurns[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ConversationTurn`)`` The conversation turns uttered during the test case replay in chronological order. |
| `testResult` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results#TestCaseResult.TestResult`)`` Whether the test case passed in the agent environment. |
| `testTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time that the test was run. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

### TestResult

The test result for a test case and an agent environment.

| Enums ||
|---|---|
| `TEST_RESULT_UNSPECIFIED` | Not specified. Should never be used. |
| `PASSED` | The test passed. |
| `FAILED` | The test did not pass. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results/get` | Gets a test case result. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases.results/list` | Fetches the list of run results for the given test case. |