Class TestCasesConnection (2.26.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(ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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 >