Android developer Guide (20) -- Testing

Source: Internet
Author: User

 

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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.