Class: LegoTechSelenium::TestSuite::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/ui/test-suites/TestSuite.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, driver) ⇒ Builder

Constructor for internal builder

Parameters:

  • name (String)

    The name of the class

  • driver (Driver)

    The driver of the class



57
58
59
# File 'lib/ui/test-suites/TestSuite.rb', line 57

def initialize(name, driver)
  @testSuites = TestSuite.new(name, driver)
end

Instance Method Details

#add_test_case(testCase) ⇒ Object

Add a test case to the test suite

Parameters:

  • TestsCase (TestCase)

    to be added to the list

Returns:

  • self



64
65
66
67
# File 'lib/ui/test-suites/TestSuite.rb', line 64

def add_test_case(testCase)
  @testSuites.add_test_case(testCase)
  self
end

#buildObject

Returns an instance of TestSuite

Returns:

  • TestSuite instance



71
72
73
# File 'lib/ui/test-suites/TestSuite.rb', line 71

def build
  @testSuites
end