Android Automated Test Framework Development (i) Overview of the automated testing framework

Source: Internet
Author: User

Before the development of Android automated testing framework, we should first understand the current development situation, know what our goal is, but also to understand the current mainstream framework, to know and learn from each other.
First, consider and understand a few questions:

    • What is our goal in developing an automation framework? How to get the framework you want?
    • Analysis of advantages and disadvantages of mainstream automation framework at present
    • Analysis of source code of mainstream automation framework
    • How do I use the framework to develop two times?

This article describes the first of these questions:

One: Android automated test framework goals
    1. Good stability: Use unique positioning information, such as the ID defined by the developer on the control, to reduce the node judgment by the control index
    2. Portability: Minimize control judgments and event records through coordinate points, while Monkey and Monkeyrunner are through coordinate information
    3. Supports cross-application or cross-process interaction: test frameworks Support cross-application, while instrumentation does not support cross-application
    4. High operating efficiency: window interface jump monitoring and window positioning to be accurate, while Monkey and Monkeyrunner do not support this feature
    5. Testers easy to get started: The framework is easy to understand and master, test scripts easy to edit, instrumentation and other frameworks for testers have technical requirements
    6. Easy commissioning: The frame is open enough for easy commissioning
    7. High development efficiency: high level of package and coverage for app event types
    8. Controls are easy to capture: high visibility to controls and strong stability
Two: How to get the frame you want
    1. Match FRAME: Analyze the target application (app), find the feature points and match the current test framework to find the most appropriate
    2. Framework combination: For large and complex applications, you can compensate for each other's shortcomings by combining different frameworks, achieving high coverage and stability (e.g. Uiautomator and robotium Fusion, covering more events, supporting cross-processes)
    3. Framework two-time development, encapsulation: two development and encapsulation for some frameworks for improved utilization and stability
    4. Develop your own tools: develop the appropriate testing tools based on the existing framework principles

Before we proceed to the next two practices, we must have an in-depth understanding of the current testing framework, and the following article will introduce and analyze the current mainstream testing framework.

Android Automated Test Framework Development (i) Overview of the automated testing framework

Related Article

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: 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.