Preface
This chapter is the Android developer guide Framework Topics/Testing chapter, version is Android 3.2 r1, translated from: "CodingMyWorld", welcome to his blog: "http://www.cnblogs.com/codingmyworld ", thanks again for "CodingMyWorld "! We look forward to your participation in translation of Android related information, contact me over140@gmail.com.
Statement
You are welcome to repost, but please keep the original source of the article :)
Blog Garden: http://www.cnblogs.com/
Android Chinese translation group: http://goo.gl/6vJQl
Testing
Translator's signature: CodingMyWorld
Translator's blog: http://www.cnblogs.com/codingmyworld/
Version: Android 3.2 r1
Original
Http://developer.android.com/guide/topics/testing/index.html
Test
The Android development environment includes an integrated testing framework to help developers test all aspects of an application.
Basic
To learn how to use a framework to create a test for your program, read Testing Fundamentals ).
Concept
* Activity testing mainly discusses how to test activities. This chapter describes how the test tool allows you to control the Activity beyond the lifecycle of a regular application. It also lists the functions you should test the activity and provides some suggestions for testing the Android user interface.
* The Content Provider test mainly discusses how to test the Content Provider. This chapter describes the simulated system objects you can use and provides suggestions for design content providers so that they can be tested and list the provider functions you should test.
* Service testing focuses on testing services. It also lists the service features you should test.
* What to Test is an overview of the types of tests you should perform. It mainly discusses tests on the Android system, which may affect every component in your application.
Process
* Using ADT to test in Eclipse describes how to create and run a test in Eclipse with ADT installed.
* The test chapter in other ides describes how to use the command line tool to create and run a test.
Tutorial
* The Hello and Testing tutorials introduce basic Testing concepts and processes.
* If you need more advanced tutorials, try Activity Testing, which guides you to test in a more complex scenario.
Tools
* UI/Application Exerciser Monkey, usually called Monkey, is a command line tool that can send pseudo-random streams of buttons, touches, and gestures to devices.
* The monkeyrunner tool is an API and execution environment. You can use monkeyrunner in Python to test programs and devices.