Class: LegoTechSelenium::TestCase::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/ui/test-cases/TestCase.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, driver) ⇒ Builder

Returns a new instance of Builder.



55
56
57
# File 'lib/ui/test-cases/TestCase.rb', line 55

def initialize(name, driver)
  @testCase = TestCase.new(name, driver)
end

Instance Method Details

#add_action(action) ⇒ Builder

Function used to add an action using a Builder class

Parameters:

  • action (Action)

    The action to add to the list of actions

Returns:



62
63
64
65
# File 'lib/ui/test-cases/TestCase.rb', line 62

def add_action(action)
  @testCase.add_action(action)
  self
end

#buildTestCase

A function the return the built TestCase

Returns:



69
70
71
# File 'lib/ui/test-cases/TestCase.rb', line 69

def build
  @testCase
end