Android Test Analytics 1

Source: Internet
Author: User

Android test Framework, part of the integration in the development environment, provides a framework and powerful tools

can help test your app from cell to frame in every aspect.

The test framework has these key features:

1. TheAndroid test component is based on Junit. You can test a class with a simple JUnit, but you don't have to call the Android API, or you can test the Andriod section with the android JUnit extension . If you create a new Android Test module, you can start with a generic target test unit class such as Androidtestcase , and then you can use more complex classes.

2.the Android JUnit extension provides a test unit class for a specific component. These classes provide helper methods to create mock objects and methods to help you control the life cycle of your component.

3. The test component is included in the test package, which is similar to the main (main) application package, so you do not need to learn a new toolset or techniques for designing and compiling test units.

4. The SDK tools for testing and compiling are available in the Eclipse with ADT and can also be used in other IDE command line forms. These tools obtain information from tests in the application's project, and use this information to automatically create the compiled file and the directory structure under the test package.

5. TheSDK also provides Monkeyrunner, which is an API for test devices under a python program , and ui/application exerciser Monkey, which is a command-line tool that simulates a ui/application unit by sending a stress test that mimics a random event to a device .

This document describes the fundamentals of the Android test framework, including the structure of the test, the APIs you use to develop the tests , and the tools you use to run the tests and observe the results. The documentation assumes that you have a basic knowledge of the Android application and JUnit test methods.

The following diagram summarizes the test framework:

Android Test Analytics 1

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.