Class: Allure::TestResult

Inherits:
ExecutableItem show all
Defined in:
allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb

Overview

Allure model test result container

Instance Attribute Summary collapse

Attributes inherited from ExecutableItem

#attachments, #description, #description_html, #name, #parameters, #stage, #start, #status, #status_details, #steps, #stop

Instance Method Summary collapse

Methods inherited from JSONable

#==, #as_json, #to_json

Constructor Details

#initialize(uuid: UUID.generate, history_id: UUID.generate, **options) ⇒ TestResult

Returns a new instance of TestResult.

Options Hash (**options):


21
22
23
24
25
26
27
28
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb', line 21

def initialize(uuid: UUID.generate, history_id: UUID.generate, **options)
  super
  @uuid = uuid
  @history_id = history_id
  @full_name = options[:full_name] || "Unnamed"
  @labels = options[:labels] || []
  @links = options[:links] || []
end

Instance Attribute Details

#full_nameObject

Returns the value of attribute full_name


30
31
32
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb', line 30

def full_name
  @full_name
end

#history_idObject

Returns the value of attribute history_id


30
31
32
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb', line 30

def history_id
  @history_id
end

#labelsObject

Returns the value of attribute labels


30
31
32
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb', line 30

def labels
  @labels
end

Returns the value of attribute links


30
31
32
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb', line 30

def links
  @links
end

#uuidObject

Returns the value of attribute uuid


30
31
32
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result.rb', line 30

def uuid
  @uuid
end