Class: LegoTechSelenium::TestSuite
- Inherits:
-
Object
- Object
- LegoTechSelenium::TestSuite
- Defined in:
- lib/ui/test-suites/TestSuite.rb
Defined Under Namespace
Classes: Builder
Instance Method Summary collapse
-
#addTestCase(testCase) ⇒ Object
Function used to add a TestCase to thee TestSuite.
-
#getName ⇒ String
Retrieve the name of the TestSuite.
-
#getNumberOfTestCases ⇒ Number
Retrieve the number of TestCases within the TestSuite.
-
#initialize(name, driver) ⇒ TestSuite
constructor
A new instance of TestSuite.
-
#run ⇒ Object
Function that will invoke all test cases.
Constructor Details
#initialize(name, driver) ⇒ TestSuite
Returns a new instance of TestSuite.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ui/test-suites/TestSuite.rb', line 6 def initialize(name, driver) if name.nil? or name.empty? raise "All TestSuites must have a name associated to them" end if driver.nil? raise "Driver must be non nil" end @name = name @driver = driver @entries = [] end |
Instance Method Details
#addTestCase(testCase) ⇒ Object
Function used to add a TestCase to thee TestSuite
21 22 23 |
# File 'lib/ui/test-suites/TestSuite.rb', line 21 def addTestCase(testCase) @entries.push(testCase) end |
#getName ⇒ String
Retrieve the name of the TestSuite
27 28 29 |
# File 'lib/ui/test-suites/TestSuite.rb', line 27 def getName() return @name end |
#getNumberOfTestCases ⇒ Number
Retrieve the number of TestCases within the TestSuite
33 34 35 |
# File 'lib/ui/test-suites/TestSuite.rb', line 33 def getNumberOfTestCases return @entries.size end |
#run ⇒ Object
Function that will invoke all test cases
38 39 40 |
# File 'lib/ui/test-suites/TestSuite.rb', line 38 def run() raise "Not yet built" end |