blob: cf87187aa0122627d55ce89ef3426109bb2a2eb9 [file] [log] [blame]
Dirk Doughertydafac622010-10-10 13:20:12 -07001page.title=Testing
2@jd:body
3<p>
4 The Android development environment includes an integrated testing framework that helps you
5 test all aspects of your application.
6</p>
7<h4>Fundamentals</h4>
8<p>
9 To start learning how to use the framework to create tests for your applications, please
10 read the topic <a href="{@docRoot}guide/topics/testing/testing_android.html">
11 Testing Fundamentals</a>.
12</p>
13<h4>Concepts</h4>
14<ul>
15 <li>
Dirk Doughertydafac622010-10-10 13:20:12 -070016 <a href="{@docRoot}guide/topics/testing/activity_testing.html">
17 Activity Testing</a> focuses on testing activities. It describes how instrumentation allows
18 you to control activities outside the normal application lifecycle. It also lists
19 activity-specific features you should test, and it provides tips for testing Android
20 user interfaces.
21 </li>
22 <li>
23 <a href="{@docRoot}guide/topics/testing/contentprovider_testing.html">
24 Content Provider Testing</a> focuses on testing content providers. It describes the
25 mock system objects you can use, provides tips for designing providers so that they
26 can be tested, and lists provider-specific features you should test.
27 </li>
28 <li>
29 <a href="{@docRoot}guide/topics/testing/service_testing.html">
30 Service Testing</a> focuses on testing services. It also lists service-specific features
31 you should test.
32 </li>
Joe Malin9c61f8f2010-10-12 14:36:59 -070033 <li>
34 <a href="{@docRoot}guide/topics/testing/what_to_test.html">What to Test</a>
35 is an overview of the types of testing you should do. It focuses on testing
36 system-wide aspects of Android that can affect every component in your application.
37 </li>
Dirk Doughertydafac622010-10-10 13:20:12 -070038</ul>
39<h4>Procedures</h4>
40<ul>
41 <li>
42 The topic <a href="{@docRoot}guide/developing/testing/testing_eclipse.html">
43 Testing in Eclipse, with ADT</a> describes how to create and run tests in Eclipse with ADT.
44 </li>
45 <li>
46 The topic <a href="{@docRoot}guide/developing/testing/testing_otheride.html">
47 Testing in other IDEs</a> describes how to create and run tests with command-line tools.
48 </li>
49</ul>
50<h4>Tutorials</h4>
51<ul>
52 <li>
53 The <a href="{@docRoot}resources/tutorials/testing/helloandroid_test.html">
54 Hello, Testing</a> tutorial introduces basic testing concepts and procedures.
55 </li>
56 <li>
57 For a more advanced tutorial, try
58 <a href="{@docRoot}resources/tutorials/testing/activity_test.html">Activity Testing</a>,
59 which guides you through a more complex testing scenario.
60 </li>
61</ul>
Joe Malina7fda212010-10-18 17:07:45 -070062<h4>Tools</h4>
63<ul>
64 <li>
65 The
66 <a href="{@docRoot}guide/developing/tools/monkey.html">UI/Application Exerciser Monkey</a>,
67 usually called Monkey, is a command-line tool that sends pseudo-random
68 streams of keystrokes, touches, and gestures to a device.
69 </li>
70 <li>
71 The <a href="{@docRoot}guide/developing/tools/monkeyrunner_concepts.html">monkeyrunner</a> tool
72 is an API and execution environment. You use monkeyrunner with Python programs
73 to test applications and devices.
74 </li>
75</ul>
Scott Main93d204e2010-12-06 15:19:37 -080076<!--
Dirk Doughertydafac622010-10-10 13:20:12 -070077<h4>Samples</h4>
78<ul>
79 <li>
Dirk Doughertydafac622010-10-10 13:20:12 -070080 The <a href="{@docRoot}resources/samples/AlarmServiceTest.html">Alarm Service Test</a>
81 is a test package for the <a href="{@docRoot}resources/samples/Alarm.html">Alarm</a>
82 sample application. It provides a simple example of unit
83 testing a {@link android.app.Service}.
84 </li>
85</ul>
Scott Main93d204e2010-12-06 15:19:37 -080086-->