Class: PerfectoExecutionContext::PerfectoExecutionContextBuilder

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

Overview

PerfectoExecutionContext

This class used to create PerfectoExecutionContext instance

example: perfectoExecutionContext::perfectoExecutionContextBuilder .withJob(“job name” , job number ) .withProject(“project name” , project version) .withWebDriver(driver) .build()

Constant Summary collapse

@@job =
nil
@@project =
nil
@@webdriver =
nil
@@contextTags =
nil

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.buildObject

building a new builder instance



72
73
74
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 72

def self.build
  return self.new
end

.withContextTags(*args) ⇒ Object

define contextTags



66
67
68
69
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 66

def self.withContextTags *args
  @@contextTags = args
  return self
end

.withJob(job) ⇒ Object

define a job



48
49
50
51
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 48

def self.withJob job
  @@job = job
  return self
end

.withProject(project) ⇒ Object

define a project



54
55
56
57
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 54

def self.withProject project
  @@project = project
  return self
end

.withWebDriver(webdriver) ⇒ Object

define webdriver



60
61
62
63
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 60

def self.withWebDriver webdriver
  @@webdriver = webdriver
  return self
end

Instance Method Details

#contextTagsObject



84
85
86
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 84

def contextTags
  @@contextTags
end

#jobObject



76
77
78
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 76

def job
  @@job
end

#projectObject



80
81
82
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 80

def project
  @@project
end

#webdriverObject



88
89
90
# File 'lib/perfecto-reporting/model/PerfectoExecutionContext.rb', line 88

def webdriver
  @@webdriver
end