class Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TestCase

Represents a test case.

Attributes

creation_time[RW]

Output only. When the test was created. Corresponds to the JSON property `creationTime` @return [String]

display_name[RW]

Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters. Corresponds to the JSON property `displayName` @return [String]

last_test_result[RW]

Represents a result from running a test case in an agent environment. Corresponds to the JSON property `lastTestResult` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TestCaseResult]

name[RW]

The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ / testCases/`. Corresponds to the JSON property `name` @return [String]

notes[RW]

Additional freeform notes about the test case. Limit of 400 characters. Corresponds to the JSON property `notes` @return [String]

tags[RW]

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. Corresponds to the JSON property `tags` @return [Array<String>]

test_case_conversation_turns[RW]

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. Corresponds to the JSON property `testCaseConversationTurns` @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ConversationTurn>]

test_config[RW]

Represents configurations for a test case. Corresponds to the JSON property `testConfig` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TestConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 8492
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 8497
def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @last_test_result = args[:last_test_result] if args.key?(:last_test_result)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @tags = args[:tags] if args.key?(:tags)
  @test_case_conversation_turns = args[:test_case_conversation_turns] if args.key?(:test_case_conversation_turns)
  @test_config = args[:test_config] if args.key?(:test_config)
end