Class TestCases.TestCasesBase (1.2.0)

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

Base class for server-side implementations of TestCases

Inheritance

Object > TestCases.TestCasesBase

Namespace

Google.Cloud.Dialogflow.Cx.V3

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
Task<Empty>

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.

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
Task<Operation>

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
Task<CalculateCoverageResponse>

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
Task<TestCase>

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.

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
Task<Operation>

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
Task<TestCase>

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
Task<TestCaseResult>

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 overwite any existing ones. The provided ID in the imported test case is neglected.

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
Task<Operation>

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 a list of results for a given 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
Task<ListTestCaseResultsResponse>

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
Task<ListTestCasesResponse>

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.

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
Task<Operation>

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
Task<TestCase>

The response to send back to the client (wrapped by a task).