Class: Awetestlib::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/awetestlib/runner.rb

Overview

Parent class. Each script type will have a Runner that inherits from this class.

Direct Known Subclasses

Awetestlib::Regression::Runner

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Runner

Returns a new instance of Runner.



5
6
7
8
# File 'lib/awetestlib/runner.rb', line 5

def initialize(options = {})
  build_class = "Awetestlib::#{check_script_type(options[:script_type])}::Runner".constantize
  build_class.new(options).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