Appium+robotframework automated testing for Android Apps-3: An essential tool introduction

Source: Internet
Author: User

Everything is there, and then we're going to start writing the test script.

However, one important issue has not been solved. We know that robotframework in Web pages relies primarily on elements of id,name or XPath to locate elements on the page, and we rely on the browser's plugin Firepath to do this, but how do you position the elements on the page in an Android app? Now, this key tool should come out, it is uiautomatorviewer.bat, this tool is located in the%android_home%\tools directory, double-click to run it.

If the simulator has not started, but also to start up, and so on when the simulator starts to appear on the phone's standby interface, the emulator to operate, we open the calculator, click on the number 6, then click Multiplication Sign, then click on the Uiautomatorviewer.bat left corner of the second icon device Screenshot, this icon can be clicked on the emulator, but more amazing is that when we move the cursor to the element in, the element's properties appear automatically on its right, as shown in.


Often use is the Resource-id,text,class attribute, Resource-id in Appiumlibrary (later the article will introduce) in fact is the id attribute, think of it, in robotframework we do not often use the ID? Note, however, that you can only see Resource-id if the version of the app you're testing is set to 4.3 and above.

With this handy tool, the next step in writing code scripts is much simpler.

Transferred from: http://bbs.51testing.com/thread-1051479-1-1.html

Appium+robotframework automated testing for Android Apps-3: An essential tool introduction

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.