Class: EasyAutomation::Runner
- Inherits:
-
Object
- Object
- EasyAutomation::Runner
- Defined in:
- lib/easy_automation/runner.rb
Class Method Summary collapse
- .configuration ⇒ Object
- .configure {|configuration| ... } ⇒ Object
- .run(test_suite) ⇒ Object
- .server ⇒ Object
Class Method Details
.configuration ⇒ Object
22 23 24 25 26 27 |
# File 'lib/easy_automation/runner.rb', line 22 def configuration unless @configuration @configuration = Config.new end @configuration end |
.configure {|configuration| ... } ⇒ Object
33 34 35 |
# File 'lib/easy_automation/runner.rb', line 33 def configure yield configuration end |
.run(test_suite) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/easy_automation/runner.rb', line 37 def run test_suite raise RunnerSuiteException.new('Wrong test suite class') unless test_suite.is_a?(Suite) Server.rc.start configuration.execute :before, :all ::Test::Unit::UI::Console::TestRunner.run test_suite configuration.execute :after, :all Server.rc.stop end |
.server ⇒ Object
29 30 31 |
# File 'lib/easy_automation/runner.rb', line 29 def server @selenium_server ||= Server.new end |