Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Monkey to stress test one of my company's Android applications. However, the --throttle switch does not seem to work as specified.

For example, I set Monkey to inject an input event every 500 milliseconds. While the Monkey runner id noticeably slow down, it would still sometimes send multiple events in rapid succession. I then set the throttling to 5,000 milliseconds, but the issue would persist.

Am I doing something wrong?

share|improve this question
When you say "in rapid succession", do you mean more frequently than every 500 milliseconds? It might be helpful if you edited the question to add your full command line (I am not experienced with using Monkey, but those who are might be able to help with more information) – Kate Paulk Oct 7 '13 at 16:17

I had faced the same issue.

What I was using:
./adb shell monkey -p -v 50 --throttle 1000

Correct syntax:
./adb shell monkey -p -v --throttle 1000 50

According to the syntax mentioned here, all options should be before the event-count.

If you are already using this correctly, the "multiple events in rapid succession" should be the key, trackball events. For e.g.

:Sending Trackball (ACTION_MOVE): 0:(-3.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,-1.0)


:Sending Key (ACTION_UP): 19 // KEYCODE_DPAD_UP

are grouped together (without the throttle delay), but are still counted towards the event count as 5 and 2 resp.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.