lib/xcmonkey/repeater.rb in xcmonkey-1.2.0 vs lib/xcmonkey/repeater.rb in xcmonkey-1.3.0

- old
+ new

@@ -1,17 +1,19 @@ class Repeater - attr_accessor :udid, :bundle_id, :enable_simulator_keyboard, :actions + attr_accessor :udid, :bundle_id, :disable_simulator_keyboard, :ignore_crashes, :actions, :throttle def initialize(params) validate_session(params[:session_path]) end def run params = { udid: udid, + throttle: throttle, bundle_id: bundle_id, - enable_simulator_keyboard: enable_simulator_keyboard, + ignore_crashes: ignore_crashes, + disable_simulator_keyboard: disable_simulator_keyboard, session_actions: actions } Driver.new(params).repeat_monkey_test end @@ -32,8 +34,12 @@ Logger.error('Provided session is not valid: `udid` should not be `nil`') if udid.nil? self.bundle_id = session['params']['bundle_id'] Logger.error('Provided session is not valid: `bundle_id` should not be `nil`') if bundle_id.nil? - self.enable_simulator_keyboard = session['params']['enable_simulator_keyboard'] + self.throttle = session['params']['throttle'] + + self.ignore_crashes = session['params']['ignore_crashes'] + + self.disable_simulator_keyboard = session['params']['disable_simulator_keyboard'] end end