Class: PerfectoExecutionContext

Inherits:
Object
  • Object
show all
Defined in:
lib/perfecto-reporting/model/PerfectoExecutionContext.rb

Overview

PerfectoExecutionContext

This class defines the high-level execution context for all tests.

Creating instance of this class possible only with PerfectoExecutionContextBuilder instance.

Defined Under Namespace

Classes: PerfectoExecutionContextBuilder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(perfectoExecutionContextBuilder) ⇒ PerfectoExecutionContext

create new instance

perfectoExecutionContextBuilder - raise ReportiumException if driver not given.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 17

def initialize (perfectoExecutionContextBuilder)

  # execution is not possible without webdriver.
  if perfectoExecutionContextBuilder.webdriver.nil?
    raise ReportiumException.new('Missing required webdriver argument.')
  end

  @job = perfectoExecutionContextBuilder.job
  @project = perfectoExecutionContextBuilder.project
  @webdriver = perfectoExecutionContextBuilder.webdriver
  @contextTags = perfectoExecutionContextBuilder.contextTags
	@customFields = perfectoExecutionContextBuilder.customFields

end

Instance Attribute Details

#contextTagsObject

Returns the value of attribute contextTags.



11
12
13
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11

def contextTags
  @contextTags
end

#customFieldsObject

Returns the value of attribute customFields.



11
12
13
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11

def customFields
  @customFields
end

#jobObject

Returns the value of attribute job.



11
12
13
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11

def job
  @job
end

#projectObject

Returns the value of attribute project.



11
12
13
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11

def project
  @project
end

#webdriverObject

Returns the value of attribute webdriver.



11
12
13
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11

def webdriver
  @webdriver
end