Skip to content

Commit 2e2d58c

Browse files
committed
refactor intelligent monkey to kraken monkey
1 parent 7cb596a commit 2e2d58c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/kraken-mobile/runners/calabash/android/monkey_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module KrakenMobile
55
module CalabashAndroid
66
module MonkeyHelper
77

8-
# Runs inteligent monkey
9-
def run_intelligent_monkey channel, number_of_events
8+
# Runs kraken monkey
9+
def run_kraken_monkey channel, number_of_events
1010
device_id = channel_to_device_id channel
1111
logger = open("./#{device_id}.txt", 'w')
1212
number_of_events.times do |i|

lib/kraken-mobile/runners/calabash/android/steps/communication_steps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
run_monkey channel, int
4747
end
4848

49-
Then /^I start a intelligent monkey with (\d+) events$/ do |int|
49+
Then /^I start kraken monkey with (\d+) events$/ do |int|
5050
channel = @scenario_tags.grep(/@user/).first
51-
run_intelligent_monkey channel, int
51+
run_kraken_monkey channel, int
5252
end
5353

5454
Then /^I start a monkey with (\d+) events from height (\d+)% to (\d+)% and width (\d+)% to (\d+)%$/ do |int, from_x, to_x, from_y, to_y|

lib/kraken-mobile/runners/calabash/monkey/monkey_runner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run_tests(process_number, options)
7272
default_device = operations_module::Device.new(operations_module, ENV["ADB_DEVICE_ARG"], ENV["TEST_SERVER_PORT"], ENV["APP_PATH"], ENV["TEST_APP_PATH"])
7373
install_app_with_calabash
7474
default_device.start_test_server_in_background
75-
run_intelligent_monkey "#@user#{process_number}", 20
75+
run_kraken_monkey "#@user#{process_number}", 20
7676
default_device.shutdown_test_server
7777
uninstall_app_with_calabash
7878
puts "\n****** PROCESS #{process_number} COMPLETED ******\n\n"

0 commit comments

Comments
 (0)