Appium Architecture Principles

Source: Internet
Author: User
Tags appium

Appium is implemented on the basis of a test framework that comes with the mobile operating system, and the tools used on Android and iOS systems are:

  • Android (Version >4.2): uiautomator,android4.2 After the system comes with the UI Automation Test tool.
  • The Ios:uiautomation,ios system comes with a UI Automation test tool.

The architecture principle of appium is composed of two parts: client and server, and the client communicates with the server through the JSON wire protocol.

  

Appium implements the test agent (Bootstrap.jar) on Android based on Uiautomator and implements the tested agent (bootstrap.js) on iOS based on uiautomation. When the test script is run, each line of Webdriver scripts is sent to the Appium server, and the Appium server sends the test instruction to the agent, which is the responsibility of the agent to perform the test. For example, a click on the script, on the Appium server is a touch instruction, when the instructions sent to the Android system, The Bootstrap.jar on the Android system invokes the Uiautomator method for clicking, and when the instruction is sent to the iOS system, the iOS Bootstrap.js invokes the UIAutomation method for the click operation. Because of this, the same test script can be used to achieve the platform operation.

Appium Architecture Principles

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.