Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TestCaseResult

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 result from running a test case in an agent environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1TestCaseResult

Returns a new instance of GoogleCloudDialogflowCxV3beta1TestCaseResult.



5227
5228
5229
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5227

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

Instance Attribute Details

#conversation_turnsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ConversationTurn>

The conversation turns uttered during the test case replay in chronological order. Corresponds to the JSON property conversationTurns



5203
5204
5205
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5203

def conversation_turns
  @conversation_turns
end

#environmentString

Environment where the test was run. If not set, it indicates the draft environment. Corresponds to the JSON property environment

Returns:

  • (String)


5209
5210
5211
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5209

def environment
  @environment
end

#nameString

The resource name for the test case result. Format: projects//locations// agents//testCases/ /results/. Corresponds to the JSON property name

Returns:

  • (String)


5215
5216
5217
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5215

def name
  @name
end

#test_resultString

Whether the test case passed in the agent environment. Corresponds to the JSON property testResult

Returns:

  • (String)


5220
5221
5222
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5220

def test_result
  @test_result
end

#test_timeString

The time that the test was run. Corresponds to the JSON property testTime

Returns:

  • (String)


5225
5226
5227
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5225

def test_time
  @test_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5232
5233
5234
5235
5236
5237
5238
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5232

def update!(**args)
  @conversation_turns = args[:conversation_turns] if args.key?(:conversation_turns)
  @environment = args[:environment] if args.key?(:environment)
  @name = args[:name] if args.key?(:name)
  @test_result = args[:test_result] if args.key?(:test_result)
  @test_time = args[:test_time] if args.key?(:test_time)
end