Class: TestContext

Inherits:
Object
  • Object
show all
Defined in:
lib/perfecto-reporting/test/TestContext.rb

Overview

These custom fields override the values in the PerfectoExecutionContext

Defined Under Namespace

Classes: TestContextBuilder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contextBuilder) ⇒ TestContext

Create TestContext instance



14
15
16
17
# File 'lib/perfecto-reporting/test/TestContext.rb', line 14

def initialize(contextBuilder )
  @testExecutionTags = contextBuilder.testExecutionTags
  @customFields = contextBuilder.customFields
end

Instance Attribute Details

#customFieldsObject

Returns the value of attribute customFields.



11
12
13
# File 'lib/perfecto-reporting/test/TestContext.rb', line 11

def customFields
  @customFields
end

#testExecutionTagsObject

Returns the value of attribute testExecutionTags.



11
12
13
# File 'lib/perfecto-reporting/test/TestContext.rb', line 11

def testExecutionTags
  @testExecutionTags
end