How to automate Android App with Appium?

Deepali Kalagate
3 min readDec 22, 2020

How to automate Android App with Appium?

What is Appium?

  • Appium is an Open source, Cross Platform test automation tool for mobile apps
  • Maintained by Dan Cuellar, Jonathan Lipps and a number of other contributors
  • Supports automation of Native, Hybrid and Mobile Web apps
  • Based on Webdriver JSON wire protocol
  • Based on Client-Server Architecture
  • Appium Server written in Node.js

Advantages

  • Open Source Tool
  • Support for both platforms iOS and Android
  • Handles simulators/emulators and real devices
  • Supports automation of hybrid, native and web apps
  • Supports most of the programming languages like Java, Ruby, Python etc.

Limitations

  • Appium doesn’t support testing of Android version lower than 4.2
  • Limited support for hybrid app testing

We are automating ToDo Android Mobile Application, Let’s see the what is the use of This Application…

To Do is a task management app to help you stay organized and manage your day-to-day. You can use To Do to make shopping lists or task lists, take notes, record collections, plan an event, or set reminders to increase your productivity and focus on what matters to you.

What are the Prerequisites and Dependencies-

  • Appium Desktop server
  • Android sdk
  • Java JDK
  • Android Studio for Virtual Device (Emulator)
  • Intellij or Eclipse

Dependencies-

In order to utilise this project you need to have the following installed locally or Add lib/Dependencies:

  • Appium Java Client
  • Selenium Java
  • Gradle
  • TestNG
  • ToDo Apk file(For Testing)

Let’s see what are Steps To Write Test

  • Create a Java Gradle Project in Intellij
  • Add Required Libraries
  • Create Class and Functions
  • Add Desired Capabilities
  • Setup Emulator and Appium Server
  • Create Tests for mobile test automation with POM
  • Run and Test

1. Add required libraries

2. Desired Capabilities

3. Start Appium Server

4. Emulator or Android Devices

5. UIAutomatorViewer

You can see this github repo for context…

Github Repository

https://github.com/DeepaliKalagate/AppiumTesting.git

Congratulations !!! You have automated your Android app with Appium…

--

--

Deepali Kalagate
0 Followers

Simplicity is the key to happiness