Android Programming Tutorials

(Romina) #1
Take a Monkey to Lunch

run should back up the database, run Monkey with a fresh seed, and
restore the database. If you got a crash or some other problem, re-

run the process with the same seed, and you should be able to
reproduce the failure.


  • Experiment with additional options to configure the Monkey's
    operation, as described in the Monkey documentation.

  • Experiment with Android's built-in copy of the JUnit test


framework to exercise the restaurant model class programmatically.


Further Reading........................................................................................


More about Android's test-related features, including more on the Monkey,


can be found in the "Testing" chapter of The Busy Coder's Guide to


Advanced Android Development.


337
Free download pdf