Class: Awetestlib::Runner
- Inherits:
-
Object
- Object
- Awetestlib::Runner
- Defined in:
- lib/awetestlib/runner.rb
Overview
Parent class. Each script type will have a Runner that inherits from this class.
Direct Known Subclasses
Instance Method Summary collapse
- #check_script_type(script_type) ⇒ Object
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(options = {}) ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 |
# File 'lib/awetestlib/runner.rb', line 5 def initialize( = {}) build_class = "Awetestlib::#{check_script_type([:script_type])}::Runner".constantize build_class.new().start end |
Instance Method Details
#check_script_type(script_type) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/awetestlib/runner.rb', line 10 def check_script_type(script_type) case script_type when "Regression" ; "Regression" #Should this be regression? possible rename else ; script_type end end |