> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

The *continuous tests* feature automatically runs a set of test cases configured
for an environment to verify the intended behavior of the flow versions in that
environment.

To prevent a bad version from becoming live in the environment, you can also use
*continuous deployment* to run the same set of verification tests before deploying
a flow version to the environment.

## Manage continuous tests and deployment

To manage continuous tests and deployment:

### Console

1. Open the [Dialogflow CX console](https://dialogflow.cloud.google.com/cx/projects).

2. Choose your GCP project.

3. Select your agent.

4. Click the **Manage** tab.

5. Click **CI/CD**.

6. Select an environment from the **Environment name** dropdown menu.

7. Click the **Continuous tests** tab. The **Test Cases** tab opens by default.

8. In the **Select test cases** dropdown, select a predefined test case to add
   to the continuous testing set.

9. In the **Settings** tab, the **Continuous test** toggle should be on by default.
   To add continuous deployment, click the **Continuous deployment** toggle.

To view the results of daily continuous tests for an environment, click the
**Continuous tests** tab, then **Results**.

To view whether continuous testing is enabled for an environment, click
**Environments** under the **Manage** tab. For each environment, the continuous
testing status is under the **Continuous Test** column.

### API

See the `runContinuousTest` and `deployFlow` methods for the `Environments` type.


<button class="devsite-dialog-button cloud-button cloud-button--primary" style="display: block; padding: 10px; margin-top: 10px; margin-bottom: 10px;" data-modal-dialog-id="cx-agent-reference-dialog-Environment">Go to the Environment API reference</button>
**Select a protocol and version for the Environment reference:**

| Protocol | V3 | V3beta1 |
|---|---|---|
| REST | [Environment resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.environments) | [Environment resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.environments) |
| RPC | [Environment interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#environments) | [Environment interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3beta1#environments) |
| C++ | [EnvironmentsClient](https://googleapis.dev/cpp/google-cloud-dialogflow_cx/latest/classgoogle_1_1cloud_1_1dialogflow__cx_1_1EnvironmentsClient.html) | Not available |
| C# | [EnvironmentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.EnvironmentsClient) | Not available |
| Go | [EnvironmentsClient](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/dialogflow/latest/cx/apiv3#cloud_google_com_go_dialogflow_cx_apiv3_EnvironmentsClient) | Not available |
| Java | [EnvironmentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.EnvironmentsClient) | [EnvironmentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient) |
| Node.js | [EnvironmentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3.EnvironmentsClient.html) | [EnvironmentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3beta1.EnvironmentsClient.html) |
| PHP | Not available | Not available |
| Python | [EnvironmentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.services.environments.EnvironmentsClient) | [EnvironmentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3beta1.services.environments.EnvironmentsClient) |
| Ruby | Not available | Not available |

<button class="devsite-dialog-close">Close</button>

<br />