Nuts and Bolts Of Appium

Reading Time: 4 minutes

Hello everyone, in this blog, I will be sharing some basic concept and installation process of Appium on your Linux system.

In a job profile like QA you should be open to work on any kind of technology stack based on your project. You should not limit yourself to a specific skill set. In short as a QA you should be able to assure the quality of a project in all aspects whether it is API testing or UI testing or any other type of testing (performance, load, stress just to name a few). You should be able to reduce the QA effort by introducing automation in both aspects. I will be discussing all types of testing and the basics of them in my next blogs so stay connected.

Before getting started let’s discuss why a blog on Appium?

Why Appium:

While working in software testing we are working on the different types of applications like web-based applications, window base applications some time we got a chance to work on mobile applications.

Mobile applications are the applications which are running on the mobile devices. It could be an android device, an ios device, or a window device. There are multiple tools available in market to automate a mobile application testing process. One of the tool is appium which we are going to cover in this blog.

What is Appium:

Appium is an open-source automation tool or we can call it an open-source automation framework which allows us to automate the different type of mobile applications, it could be a web application, it could be a native or hybrid application.

So question arise what is the difference between these applications?

  • Web applications: web applications or the mobile web application are the applications which are running on the mobile browsers.
  • Native applications: native applications are the applications that are installed on the mobile device and we can use it directly.
  • Hybrid applications: Hybrid applications are combination of web and native applications.

Advantages:

  • It supports the android as well as ios and windows application.
  • It supports multiple programming languages(java, python, ruby, c# and many more).
  • Appium can work on the simulator as well as on the real devices.

Architecture Of Appium:

Appium supports Android versions greater than or equal to 17, for earlier versions it uses the Selendroid framework.

When we execute the test scripts, Appium sends the command to the UIAutomator or Selendroid on the basis of the Android version.

Bootstrap.jar plays the role of a TCP server, which we can use to send the test command in order to perform the action on the Android device using UIAutomator/Selendroid.

Appium Setup on the system:

Pre-requisite:

  • JAVA
  • Android SDK
  • Node
  • IDE

JAVA Installation:

To install java click here.

set environment variable for java by adding JAVA_HOME in $ file.

export JAVA_HOME=/home/knoldus/Documents/Appium/jdk1.8.0_231

Open the terminal and type this below command from the terminal:

$java -version

if Java is installed successfully then you will get the following response:

Android SDK Installation:

To install android SDK click here.

Set the environment variables for android SDK by adding ANDROID_HOME,Platform-tools, and tools.

export ANDROID_HOME=/home/knoldus/Documents/Appium/android-sdk
export PATH=$PATH:$JAVA_HOME/bin:$SBT_HOME/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools

To verify the android SDK installation type the following command from the terminal:

$adb

If android SDK is installed then you will get the following response:

Node Installation:

To install Node click here.

There is no need to set the environment variables for node.

To verify the node installation type following command from the terminal.

$node -v

if node is installed successfully you will get the following response:

IDE Installation:

you can use any IDE tool for Appium like IntelliJ, eclipse, or android studio.

To install the android studio click here.

Appium Installation:

Use the following command to install the Appium :

$npm install -g appium

to verify the Appium installation type following command from terminal:

$appium

if appium is installed successfully you will get the following response:

In the end after installing appium, we should check whether all major and necessary dependencies are installed on our system or not.

To verify this type the following command from the terminal:

$appium-doctor --android/ios

Note:

–android for checking all the necessary dependencies required for test android applications.

ios for checking all the necessary dependencies required for test ios applications.

If all the necessary dependencies are installed on your system you will get the following response.

Thanks for reading this blog.

In my next blog I will cover some basic concept of appium.

Stay connected for my latest blogs related to Automation testing of the android application using Appium.

References:

http://appium.io/docs/en/about-appium/intro/

https://github.com/appium/appium

Advertisements

Written by 

Vandana is a Sr. QA Consultant having experience of more than 2.5 years. She is familiar with the core concepts of manual and automation, postman and Newman are her expertise. She is always eager to learn new and advance concepts in order to expand her horizon and apply them in project development with her existing knowledge. Her hobbies include reading novels and listening to music.

Leave a Reply

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!