Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestCase

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Represents a test case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3TestCase

Returns a new instance of GoogleCloudDialogflowCxV3TestCase.



2737
2738
2739
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2737

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timeString

Output only. When the test was created. Corresponds to the JSON property creationTime

Returns:

  • (String)


2693
2694
2695
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2693

def creation_time
  @creation_time
end

#display_nameString

Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


2699
2700
2701
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2699

def display_name
  @display_name
end

#last_test_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestCaseResult

Represents a result from running a test case in an agent environment. Corresponds to the JSON property lastTestResult



2704
2705
2706
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2704

def last_test_result
  @last_test_result
end

#nameString

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

Returns:

  • (String)


2711
2712
2713
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2711

def name
  @name
end

#notesString

Additional freeform notes about the test case. Limit of 400 characters. Corresponds to the JSON property notes

Returns:

  • (String)


2716
2717
2718
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2716

def notes
  @notes
end

#tagsArray<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. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


2723
2724
2725
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2723

def tags
  @tags
end

#test_case_conversation_turnsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ConversationTurn>

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



2730
2731
2732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2730

def test_case_conversation_turns
  @test_case_conversation_turns
end

#test_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestConfig

Represents configurations for a test case. Corresponds to the JSON property testConfig



2735
2736
2737
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2735

def test_config
  @test_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2742

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