Class: Allure::TestResultContainer

Inherits:
JSONable
  • Object
show all
Defined in:
allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb

Overview

Allure model step result container

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#==, #to_hash, #to_json

Constructor Details

#initialize(uuid: UUID.generate, name: "Unnamed") ⇒ TestResultContainer

Returns a new instance of TestResultContainer.



6
7
8
9
10
11
12
13
14
15
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 6

def initialize(uuid: UUID.generate, name: "Unnamed")
  super()

  @uuid = uuid
  @name = name
  @children = []
  @befores = []
  @afters = []
  @links = []
end

Instance Attribute Details

#aftersObject

Returns the value of attribute afters.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def afters
  @afters
end

#beforesObject

Returns the value of attribute befores.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def befores
  @befores
end

#childrenObject

Returns the value of attribute children.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def children
  @children
end

#descriptionObject

Returns the value of attribute description.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def description
  @description
end

#description_htmlObject

Returns the value of attribute description_html.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def description_html
  @description_html
end

Returns the value of attribute links.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def links
  @links
end

#nameObject

Returns the value of attribute name.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def name
  @name
end

#startObject

Returns the value of attribute start.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def start
  @start
end

#stopObject

Returns the value of attribute stop.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def stop
  @stop
end

#uuidObject

Returns the value of attribute uuid.



17
18
19
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/test_result_container.rb', line 17

def uuid
  @uuid
end