Class: Allure::ExecutableItem

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

Overview

Allure model executable item

Direct Known Subclasses

FixtureResult, StepResult, TestResult

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#==, #as_json, #to_json

Constructor Details

#initialize(**options) ⇒ ExecutableItem

Returns a new instance of ExecutableItem.

Options Hash (**options):


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

def initialize(**options)
  @name = options[:name]
  @description = options[:description]
  @description_html = options[:description_html]
  @status = options[:status] || Status::BROKEN
  @status_details = options[:status_details] || StatusDetails.new
  @stage = options[:stage] || Stage::SCHEDULED
  @steps = options[:steps] || []
  @attachments = options[:attachments] || []
  @parameters = options[:parameters] || []
end

Instance Attribute Details

#attachmentsObject

Returns the value of attribute attachments


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

def attachments
  @attachments
end

#descriptionObject

Returns the value of attribute description


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

def description
  @description
end

#description_htmlObject

Returns the value of attribute description_html


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

def description_html
  @description_html
end

#nameObject

Returns the value of attribute name


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

def name
  @name
end

#parametersObject

Returns the value of attribute parameters


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

def parameters
  @parameters
end

#stageObject

Returns the value of attribute stage


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

def stage
  @stage
end

#startObject

Returns the value of attribute start


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

def start
  @start
end

#statusObject

Returns the value of attribute status


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

def status
  @status
end

#status_detailsObject

Returns the value of attribute status_details


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

def status_details
  @status_details
end

#stepsObject

Returns the value of attribute steps


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

def steps
  @steps
end

#stopObject

Returns the value of attribute stop


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

def stop
  @stop
end