Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Using Monkey Testing
One of the Android tools is an application exerciser program known as the Monkey. It generates a great many random events and quickly runs your application through them. It’s like giving your phone to a hyperactive four-year-old! This app can put your application through its paces in unexpected ways, and it may even find a bug or two.
Some of the events that the Monkey tests are touch events, motion events, navigation events (such as the back key), system events (such as changing volume and stopping and starting activities), and a few other events as well.
The Monkey is a command-line tool and can be run on an emulator or on a device. Be careful when you run it on a device, because it may change your volume and other settings, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access