Class: PerfectoExecutionContext

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

Overview

PerfectoExecutionContext

This class define execution for MCM-based clients.

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.



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

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

end

Instance Attribute Details

#contextTagsObject

Returns the value of attribute contextTags.



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

def contextTags
  @contextTags
end

#jobObject

Returns the value of attribute job.



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

def job
  @job
end

#projectObject

Returns the value of attribute project.



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

def project
  @project
end

#webdriverObject

Returns the value of attribute webdriver.



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

def webdriver
  @webdriver
end