Search

How Appium Works?

Appium is an open source automation tool for running scripts and testing native applications, mobile-web applications and hybrid applications on Android or iOS using a webdriver. Appium supports automation test on physical devices as well as an emulator or simulator both.


The tool quickly became popular because it is platform-agnostic which means you can use the same test script to test both iOS and Android apps with minimal changes.


How Appium Works?

Appium uses Client-server architecture. Here are the key components of the Appium Architecture.




1) Appium Client Libraries: Appium clients request the server to start a test automation session using the createSession() command via the JSON Wire protocol, run tests on multiple mobile devices, and receive the rest results from the Appium Server. Appium client libraries span across multiple languages such as PHP, Java, Ruby, JavaScript, C#, Python.


2) Appium Server: Appium Server is the core component of the Appium architecture. It is written in Node.js and runs on the machine or in the cloud. The Appium Server receives requests from Appium client libraries via the JSON Wire Protocol and invokes the mobile driver (Android driver/iOS driver) to connect to the corresponding native testing automation frameworks to run client operations on the devices.


3) JSON Wire Protocol: In the Appium client-server architecture, Appium clients communicate with the Appium Server via the JSON Wire protocol that is developed by WebDriver developers team. It enables developers to access standard and predefined endpoints via a RESTful API.


4) Appium Driver: Appium is platform-agnostic and technology-agnostic. To effectively manage different platforms, Appium uses multiple drivers and converts API into automation sessions for corresponding platforms.

  1. UiAutomator2: The default Appium driver for Android device testing

  2. UiAutomator1: Appium driver for older android versions.

  3. XCUITest: Appium driver for iOS device testing

  4. WinAppDriver: Appium driver for windows device testing

  5. Espresso: New Appium driver for Android device testing


While there is a learning curve, it is worth your time as it makes automation testing easy and effective once you get your hands on it.


Happy Testing!!!

4 views0 comments

Recent Posts

See All

A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of characters you need to delete to make s good. The f

The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the numeric value of b is 2, the numeric value of c is 3, and so on.