Class TestCasesConnection (2.28.0)

This interface defines virtual methods for each of the user-facing overload sets in TestCasesClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TestCasesClient.

To create a concrete instance, see MakeTestCasesConnection().

For mocking, see dialogflow_cx_mocks::MockTestCasesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListTestCases(google::cloud::dialogflow::cx::v3::ListTestCasesRequest)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ListTestCasesRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::cx::v3::TestCase >

virtual BatchDeleteTestCases(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &
Returns
Type Description
Status

virtual GetTestCase(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual CreateTestCase(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual UpdateTestCase(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >

virtual RunTestCase(NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RunTestCase(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >

virtual BatchRunTestCases(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >

virtual BatchRunTestCases(NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual BatchRunTestCases(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >

virtual CalculateCoverage(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse >

virtual ImportTestCases(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >

virtual ImportTestCases(NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportTestCases(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >

virtual ExportTestCases(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >

virtual ExportTestCases(NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ExportTestCases(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >

virtual ListTestCaseResults(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult >

virtual GetTestCaseResult(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult >