Android Programming Tutorials

(Romina) #1

TUTORIAL 35


Take a Monkey to Lunch


In this tutorial, we will use the Monkey utility to stress test the LunchList


application.


Step-By-Step Instructions........................................................................


First, you need to have completed the previous tutorial. If you are


beginning the tutorials here, or if you wish to not use your existing work,


you can download a ZIP file with all of the tutorial results, and you can copy


the 34-AdvAppWidget edition of LunchList to use as a starting point.


Step #1: Windows...............................................................................


Ensure your LunchList has a few restaurants, of different types. Then, leave


the LunchList at the LunchList activity itself (i.e., the list of available


restaurants).


Step #2: Hook Into the Shaker..........................................................


Launch a command prompt or shell, and run the following command:


adb shell monkey -p apt.tutorial -v --throttle 100 600

335
Free download pdf