Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TestCaseResult.
Represents a result from running a test case in an agent environment.
Generated from protobuf messagegoogle.cloud.dialogflow.cx.v3.TestCaseResult
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name for the test case result. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>.
↳ environment
string
Environment where the test was run. If not set, it indicates the draft environment.
The resource name for the test case result. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>.
Returns
Type
Description
string
setName
The resource name for the test case result. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEnvironment
Environment where the test was run. If not set, it indicates the draft
environment.
Returns
Type
Description
string
setEnvironment
Environment where the test was run. If not set, it indicates the draft
environment.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getConversationTurns
The conversation turns uttered during the test case replay in chronological
order.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class TestCaseResult (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TestCaseResult)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.TestCaseResult)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.TestCaseResult)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.TestCaseResult)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.TestCaseResult)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.TestCaseResult)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.TestCaseResult)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.TestCaseResult)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.TestCaseResult) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TestCaseResult.\n\nRepresents a result from running a test case in an agent environment.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.TestCaseResult`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name for the test case result. Format:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/testCases/\u003cTestCaseID\u003e/results/\u003cTestCaseResultID\u003e`.\n\n### setName\n\nThe resource name for the test case result. Format:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/testCases/\u003cTestCaseID\u003e/results/\u003cTestCaseResultID\u003e`.\n\n### getEnvironment\n\nEnvironment where the test was run. If not set, it indicates the draft\nenvironment.\n\n### setEnvironment\n\nEnvironment where the test was run. If not set, it indicates the draft\nenvironment.\n\n### getConversationTurns\n\nThe conversation turns uttered during the test case replay in chronological\norder.\n\n### setConversationTurns\n\nThe conversation turns uttered during the test case replay in chronological\norder.\n\n### getTestResult\n\nWhether the test case passed in the agent environment.\n\n### setTestResult\n\nWhether the test case passed in the agent environment.\n\n### getTestTime\n\nThe time that the test was run.\n\n### hasTestTime\n\n### clearTestTime\n\n### setTestTime\n\nThe time that the test was run."]]