3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    [BindServiceMethod(typeof(TestCases), "BindService")]
    public abstract class TestCases.TestCasesBase

Reference documentation and code samples for the Dialogflow v3 API class TestCases.TestCasesBase.

Base class for server-side implementations of TestCases

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TestCases.TestCasesBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Methods

### BatchDeleteTestCases(BatchDeleteTestCasesRequest, ServerCallContext)

    public virtual Task<Empty> BatchDeleteTestCases(BatchDeleteTestCasesRequest request, ServerCallContext context)

Batch deletes test cases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchDeleteTestCasesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### BatchRunTestCases(BatchRunTestCasesRequest, ServerCallContext)

    public virtual Task<Operation> BatchRunTestCases(BatchRunTestCasesRequest request, ServerCallContext context)

Kicks off a batch run of test cases.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[BatchRunTestCasesMetadata\]\[google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata\]
- `response`: \[BatchRunTestCasesResponse\]\[google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchRunTestCasesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### CalculateCoverage(CalculateCoverageRequest, ServerCallContext)

    public virtual Task<CalculateCoverageResponse> CalculateCoverage(CalculateCoverageRequest request, ServerCallContext context)

Calculates the test coverage for an agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CalculateCoverageRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCalculateCoverageResponse` | The response to send back to the client (wrapped by a task). |

### CreateTestCase(CreateTestCaseRequest, ServerCallContext)

    public virtual Task<TestCase> CreateTestCase(CreateTestCaseRequest request, ServerCallContext context)

Creates a test case for the given agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateTestCaseRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskTestCase` | The response to send back to the client (wrapped by a task). |

### ExportTestCases(ExportTestCasesRequest, ServerCallContext)

    public virtual Task<Operation> ExportTestCases(ExportTestCasesRequest request, ServerCallContext context)

Exports the test cases under the agent to a Cloud Storage bucket or a local
file. Filter can be applied to export a subset of test cases.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[ExportTestCasesMetadata\]\[google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata\]
- `response`: \[ExportTestCasesResponse\]\[google.cloud.dialogflow.cx.v3.ExportTestCasesResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ExportTestCasesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### GetTestCase(GetTestCaseRequest, ServerCallContext)

    public virtual Task<TestCase> GetTestCase(GetTestCaseRequest request, ServerCallContext context)

Gets a test case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetTestCaseRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskTestCase` | The response to send back to the client (wrapped by a task). |

### GetTestCaseResult(GetTestCaseResultRequest, ServerCallContext)

    public virtual Task<TestCaseResult> GetTestCaseResult(GetTestCaseResultRequest request, ServerCallContext context)

Gets a test case result.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetTestCaseResultRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskTestCaseResult` | The response to send back to the client (wrapped by a task). |

### ImportTestCases(ImportTestCasesRequest, ServerCallContext)

    public virtual Task<Operation> ImportTestCases(ImportTestCasesRequest request, ServerCallContext context)

Imports the test cases from a Cloud Storage bucket or a local file. It
always creates new test cases and won't overwrite any existing ones. The
provided ID in the imported test case is neglected.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[ImportTestCasesMetadata\]\[google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata\]
- `response`: \[ImportTestCasesResponse\]\[google.cloud.dialogflow.cx.v3.ImportTestCasesResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ImportTestCasesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### ListTestCaseResults(ListTestCaseResultsRequest, ServerCallContext)

    public virtual Task<ListTestCaseResultsResponse> ListTestCaseResults(ListTestCaseResultsRequest request, ServerCallContext context)

Fetches the list of run results for the given test case. A maximum of 100
results are kept for each test case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListTestCaseResultsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListTestCaseResultsResponse` | The response to send back to the client (wrapped by a task). |

### ListTestCases(ListTestCasesRequest, ServerCallContext)

    public virtual Task<ListTestCasesResponse> ListTestCases(ListTestCasesRequest request, ServerCallContext context)

Fetches a list of test cases for a given agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListTestCasesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListTestCasesResponse` | The response to send back to the client (wrapped by a task). |

### RunTestCase(RunTestCaseRequest, ServerCallContext)

    public virtual Task<Operation> RunTestCase(RunTestCaseRequest request, ServerCallContext context)

Kicks off a test case run.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[RunTestCaseMetadata\]\[google.cloud.dialogflow.cx.v3.RunTestCaseMetadata\]
- `response`: \[RunTestCaseResponse\]\[google.cloud.dialogflow.cx.v3.RunTestCaseResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RunTestCaseRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### UpdateTestCase(UpdateTestCaseRequest, ServerCallContext)

    public virtual Task<TestCase> UpdateTestCase(UpdateTestCaseRequest request, ServerCallContext context)

Updates the specified test case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateTestCaseRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskTestCase` | The response to send back to the client (wrapped by a task). |