Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::TestCase.
Represents a test case.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#creation_time
def creation_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the test was created.
#display_name
def display_name() -> ::String
Returns
- (::String) — Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.
Returns
- (::String) — Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.
#last_test_result
def last_test_result() -> ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult
Returns
- (::Google::Cloud::Dialogflow::CX::V3::TestCaseResult) — The latest test result.
#last_test_result=
def last_test_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::TestCaseResult) — The latest test result.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::TestCaseResult) — The latest test result.
#name
def name() -> ::String
Returns
-
(::String) — The unique identifier of the test case.
TestCases.CreateTestCase
will populate the name automatically. Otherwise use format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>
.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — The unique identifier of the test case.
TestCases.CreateTestCase
will populate the name automatically. Otherwise use format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>
.
Returns
-
(::String) — The unique identifier of the test case.
TestCases.CreateTestCase
will populate the name automatically. Otherwise use format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>
.
#notes
def notes() -> ::String
Returns
- (::String) — Additional freeform notes about the test case. Limit of 400 characters.
#notes=
def notes=(value) -> ::String
Parameter
- value (::String) — Additional freeform notes about the test case. Limit of 400 characters.
Returns
- (::String) — Additional freeform notes about the test case. Limit of 400 characters.
#tags
def tags() -> ::Array<::String>
Returns
- (::Array<::String>) — Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.
#tags=
def tags=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.
Returns
- (::Array<::String>) — Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.
#test_case_conversation_turns
def test_case_conversation_turns() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>
Returns
- (::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>) — The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.
#test_case_conversation_turns=
def test_case_conversation_turns=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>
Parameter
- value (::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>) — The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.
Returns
- (::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>) — The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.
#test_config
def test_config() -> ::Google::Cloud::Dialogflow::CX::V3::TestConfig
Returns
- (::Google::Cloud::Dialogflow::CX::V3::TestConfig) — Config for the test case.
#test_config=
def test_config=(value) -> ::Google::Cloud::Dialogflow::CX::V3::TestConfig
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::TestConfig) — Config for the test case.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::TestConfig) — Config for the test case.