Appium Mobile Automation Test (v) Uiautomatorviewer of app control acquisition

Source: Internet
Author: User
Tags appium

Of

The Android SDK provides the following tools to support our UI Automation testing:

Uiautomatorviewer: A tool used to scan and analyze the UI controls for an Android application.

Uiautomator: A Java library that includes creating tests and executing automated test APIs.

Google Uiautomator Documentation: http://android.toolib.net/tools/help/uiautomator/index.html

To use these tools, you must install the following version of the Android development tool:

Android SDK Tools:api version 21 or more than 21;

Android SDK PLATFORM:API version 16 or more than 16.

Profiling controls

Before you start writing test cases, using Uiautomatorviewer can help you familiarize yourself with your UI components (including views and controls).

You can use it to take a snapshot of the phone screen currently connected to your computer, and then you can see the hierarchy of the current page on the phone and the properties of each control. With this information, you can write test cases for specific UI controls.

In.. \sdk\tools\ directory to open the Uiautomatorviewer.bat (before opening the phone to connect the computer, mobile phone to turn on USB debugging).

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.