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 \ EnvironmentMethods
__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: |
↳ 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/<Project ID>/locations/
<Location ID>/agents/<AgentID>/testCases/<TestCase ID>
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/<Project ID>/locations/
<Location ID>/agents/<AgentID>/testCases/<TestCase ID>
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 |