Google Cloud Dialogflow Cx V3 Client - Class TestCasesConfig (0.5.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TestCasesConfig.

The configuration for continuous tests.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Environment

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ test_cases array

A list of test case names to run. They should be under the same agent. Format of each test case name: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>

↳ enable_continuous_run bool

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day.

↳ enable_predeployment_run bool

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false.

getTestCases

A list of test case names to run. They should be under the same agent.

Format of each test case name: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTestCases

A list of test case names to run. They should be under the same agent.

Format of each test case name: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>

Parameter
Name Description
var string[]
Returns
Type Description
$this

getEnableContinuousRun

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day.

Returns
Type Description
bool

setEnableContinuousRun

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day.

Parameter
Name Description
var bool
Returns
Type Description
$this

getEnablePredeploymentRun

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false.

Returns
Type Description
bool

setEnablePredeploymentRun

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false.

Parameter
Name Description
var bool
Returns
Type Description
$this