"Android Test" "14th section" appium--Brief

Source: Internet
Author: User
Tags appium

Objective

Similarly, this article I want to introduce is also a UI Automation tool, Address: http://appium.io/

Third-party (not Google) research and development of open-source testing tools, said here may be someone will ask, "Why has introduced the Uiautomator also want to introduce it?" "Let's talk about what's different about Appium:

1, Appium can test the original, mixed, or mobile Web projects;

2. Appium not only supports testing Android application, but also can test iOS;

3, Appium cross-platform, can run on Windows or Linux;

4, Appium support multiple languages, you can use your own familiar language, such as Java, Ruby, Python, etc. to complete your script.

Its underlying architecture is:

On the Internet to find two paragraph explanation, said should be more clear:

First, Appium uses the underlying driver to provide a unified API, is the Webdriver API.

Webdriver (also known as Selenium webdriver) is actually a C/S architecture protocol called JSON Wire Protocol. With this protocol, clients written in any language can send HTTP requests to the server. This means that you are free to choose the test framework and executor you want to use, or you can add any library files that contain HTTP clients to your code. In other words, Appium's webdriver is not a technical testing framework, but an automated library.

Second, on the Android side, Webdriver use Bootstrap.js, finally through the uiautomator command, to achieve automated testing of the app. Uiautomator test Framework is the Android SDK? Comes with the app UI Automation test Java library. In addition, due to the limited support of Uiautomator to H5, Appium introduced chromedriver for H5-based automation.

  
1. The Webdriver script on the left is our selenium test scripts
2. The middle is the Appium service, Appium on this side of a server (4723 port), similar to the Seleniumwebdriver test framework, Appium? Support the standard Webdriver Jsonwireprotocol. A set of Web services is provided here, Appium server receives the Web driver standard request, parses the request content, and responds to the action with the corresponding framework. such as: The script sends a click button request to Appium server,
3. Appium server forwards the request to the middleware Bootstrap.jar, which is written in Java and installed on the phone. Bootstrap receives the Appium command (4724 Port), which is finally achieved by tuning the command with Uiautomator.
4. The result of the last practice line is returned by Bootstrap to Appium server
5. In addition, Appium used Chromedriver to support H5 (WebView)-based testing.

Once you know the basics, you can build the environment.

Android test, section 14th, appium--summary

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