O'Reilly logo

Mastering Android Studio 3 by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stress testing

The Android Application Exerciser Monkey is a handy command line, application stress tester. It works by performing (or injecting) a stream of random input actions, such as clicking, typing, and swiping. It is akin to handing your app to a toddler and seeing if they can break it. All developers understand that the user can, and will, attempt to do utterly ridiculous and unpredictable things with their app, and short of sitting there trying to replicate every possible combination of gestures, the exerciser Monkey is as close as we can get to predict the unpredictable.

The Monkey is very simple to run: simply open the command prompt in your sdk/platform-tools directory and enter the following command:

adb shell Monkey -p com.your.package ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required