Class: PerfectoExecutionContext
- Inherits:
-
Object
- Object
- PerfectoExecutionContext
- 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
-
#contextTags ⇒ Object
Returns the value of attribute contextTags.
-
#customFields ⇒ Object
Returns the value of attribute customFields.
-
#job ⇒ Object
Returns the value of attribute job.
-
#project ⇒ Object
Returns the value of attribute project.
-
#webdriver ⇒ Object
Returns the value of attribute webdriver.
Instance Method Summary collapse
-
#initialize(perfectoExecutionContextBuilder) ⇒ PerfectoExecutionContext
constructor
create new instance.
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
#contextTags ⇒ Object
Returns the value of attribute contextTags.
11 12 13 |
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11 def contextTags @contextTags end |
#customFields ⇒ Object
Returns the value of attribute customFields.
11 12 13 |
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11 def customFields @customFields end |
#job ⇒ Object
Returns the value of attribute job.
11 12 13 |
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11 def job @job end |
#project ⇒ Object
Returns the value of attribute project.
11 12 13 |
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11 def project @project end |
#webdriver ⇒ Object
Returns the value of attribute webdriver.
11 12 13 |
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 11 def webdriver @webdriver end |