Class: Awetestlib::Runner
- Inherits:
-
Object
- Object
- Awetestlib::Runner
- Defined in:
- lib/awetestlib/runner.rb
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.
3 4 5 6 |
# File 'lib/awetestlib/runner.rb', line 3 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
8 9 10 11 12 13 |
# File 'lib/awetestlib/runner.rb', line 8 def check_script_type(script_type) case script_type when "Regression" ; "Regression" #Should this be regression? possible rename else ; script_type end end |