Skip to main content

test_cases

Creates, updates, deletes, gets or lists a test_cases resource.

Overview

Nametest_cases
TypeResource
Idgoogle.dialogflow.test_cases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
creationTimestring (google-datetime)
displayNamestring
lastTestResultobject (id: GoogleCloudDialogflowCxV3TestCaseResult)
notesstring
tagsarray
testCaseConversationTurnsarray
testConfigobject (id: GoogleCloudDialogflowCxV3TestConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_test_cases_getselectprojectsId, locationsId, agentsId, testCasesId
projects_locations_agents_test_cases_listselectprojectsId, locationsId, agentsIdpageSize, view, pageToken
projects_locations_agents_test_cases_createinsertprojectsId, locationsId, agentsId
projects_locations_agents_test_cases_patchupdateprojectsId, locationsId, agentsId, testCasesIdupdateMask
projects_locations_agents_test_cases_batch_deletedeleteprojectsId, locationsId, agentsId
projects_locations_agents_test_cases_importexecprojectsId, locationsId, agentsId
projects_locations_agents_test_cases_exportexecprojectsId, locationsId, agentsId
projects_locations_agents_test_cases_calculate_coverageexecprojectsId, locationsId, agentsIdtype
projects_locations_agents_test_cases_runexecprojectsId, locationsId, agentsId, testCasesId
projects_locations_agents_test_cases_batch_runexecprojectsId, locationsId, agentsId

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
locationsIdstring
projectsIdstring
testCasesIdstring
pageSizeinteger (int32)
pageTokenstring
typestring
updateMaskstring (google-fieldmask)
viewstring

SELECT examples

Successful response

SELECT
name,
creationTime,
displayName,
lastTestResult,
notes,
tags,
testCaseConversationTurns,
testConfig
FROM google.dialogflow.test_cases
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND testCasesId = '{{ testCasesId }}' -- required
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.test_cases (
data__tags,
data__notes,
data__name,
data__testCaseConversationTurns,
data__lastTestResult,
data__testConfig,
data__displayName,
projectsId,
locationsId,
agentsId
)
SELECT
'{{ tags }}',
'{{ notes }}',
'{{ name }}',
'{{ testCaseConversationTurns }}',
'{{ lastTestResult }}',
'{{ testConfig }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}'
RETURNING
name,
creationTime,
displayName,
lastTestResult,
notes,
tags,
testCaseConversationTurns,
testConfig
;

UPDATE examples

No description available.

UPDATE google.dialogflow.test_cases
SET
data__tags = '{{ tags }}',
data__notes = '{{ notes }}',
data__name = '{{ name }}',
data__testCaseConversationTurns = '{{ testCaseConversationTurns }}',
data__lastTestResult = '{{ lastTestResult }}',
data__testConfig = '{{ testConfig }}',
data__displayName = '{{ displayName }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND testCasesId = '{{ testCasesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
creationTime,
displayName,
lastTestResult,
notes,
tags,
testCaseConversationTurns,
testConfig;

DELETE examples

No description available.

DELETE FROM google.dialogflow.test_cases
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
;

Lifecycle Methods

Successful response

EXEC google.dialogflow.test_cases.projects_locations_agents_test_cases_import
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required
@@json=
'{
"gcsUri": "{{ gcsUri }}",
"content": "{{ content }}"
}'
;