module AndroidMonkey
Public Instance Methods
execute_monkey(number_of_events)
click to toggle source
# File lib/kraken-mobile/monkeys/mobile/android_monkey.rb, line 9 def execute_monkey(number_of_events) height, width = screen_size start_monkey number_of_events.times do |_i| monkey_touch( K::CALABASH_MONKEY_ACTIONS.sample, rand(5..(width - 5)), rand(5..(height - 5)) ) end kill_existing_monkey_processes end
Private Instance Methods
adb_command()
click to toggle source
Override calabash super adb_command
method
# File lib/kraken-mobile/monkeys/mobile/android_monkey.rb, line 27 def adb_command calabash_default_device.adb_command end