# Google Cloud Dialogflow Cx V3 Client - Class TestCasesConfig (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TestCasesConfig.

The configuration for continuous tests.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ Environment

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ test_cases` | `string[]` A list of test case names to run. They should be under the same agent. Format of each test case name: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>` |
| `↳ enable_continuous_run` | `bool` Whether to run test cases in [TestCasesConfig.test_cases](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Environment.TestCasesConfig#_Google_Cloud_Dialogflow_Cx_V3_Environment_TestCasesConfig__getTestCases__) periodically. Default false. If set to true, run once a day. |
| `↳ enable_predeployment_run` | `bool` Whether to run test cases in [TestCasesConfig.test_cases](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Environment.TestCasesConfig#_Google_Cloud_Dialogflow_Cx_V3_Environment_TestCasesConfig__getTestCases__) before deploying a flow version to the environment. Default false. |

### getTestCases

A list of test case names to run. They should be under the same agent.

Format of each test case name:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTestCases

A list of test case names to run. They should be under the same agent.

Format of each test case name:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnableContinuousRun

Whether to run test cases in
[TestCasesConfig.test_cases](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Environment.TestCasesConfig#_Google_Cloud_Dialogflow_Cx_V3_Environment_TestCasesConfig__getTestCases__)
periodically. Default false. If set to true, run once a day.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableContinuousRun

Whether to run test cases in
[TestCasesConfig.test_cases](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Environment.TestCasesConfig#_Google_Cloud_Dialogflow_Cx_V3_Environment_TestCasesConfig__getTestCases__)
periodically. Default false. If set to true, run once a day.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnablePredeploymentRun

Whether to run test cases in
[TestCasesConfig.test_cases](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Environment.TestCasesConfig#_Google_Cloud_Dialogflow_Cx_V3_Environment_TestCasesConfig__getTestCases__)
before deploying a flow version to the environment. Default false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnablePredeploymentRun

Whether to run test cases in
[TestCasesConfig.test_cases](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Environment.TestCasesConfig#_Google_Cloud_Dialogflow_Cx_V3_Environment_TestCasesConfig__getTestCases__)
before deploying a flow version to the environment. Default false.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |