Class: Google::Apis::ToolresultsV1beta3::TestCaseReference

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

Overview

A reference to a test case. Test case references are canonically ordered lexicographically by these three factors: * First, by test_suite_name. * Second, by class_name. * Third, by name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestCaseReference

Returns a new instance of TestCaseReference.



3262
3263
3264
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3262

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

Instance Attribute Details

#class_nameString

The name of the class. Corresponds to the JSON property className

Returns:

  • (String)


3250
3251
3252
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3250

def class_name
  @class_name
end

#nameString

The name of the test case. Required. Corresponds to the JSON property name

Returns:

  • (String)


3255
3256
3257
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3255

def name
  @name
end

#test_suite_nameString

The name of the test suite to which this test case belongs. Corresponds to the JSON property testSuiteName

Returns:

  • (String)


3260
3261
3262
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3260

def test_suite_name
  @test_suite_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3267
3268
3269
3270
3271
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3267

def update!(**args)
  @class_name = args[:class_name] if args.key?(:class_name)
  @name = args[:name] if args.key?(:name)
  @test_suite_name = args[:test_suite_name] if args.key?(:test_suite_name)
end