Mobile Automation Setup – Appium Installation

Appium is an open-source tool that is used to automate mobile web, native and hybrid applications on Android, IOS, and Windows Desktop. It automates Native, Mobile and Hybrid Applications. Appium supports most of the programming languages supported by WebDriver, like Java, Python, JavaScript, and Ruby. Appium handles both Emulators/Simulators and Real devices. The main advantage of using Appium is that it supports any framework and is helpful in the long run.  

Appium works on Mobile JSON wire protocol which is used to communicate between client and server. It is developed by Selenium WebDriver developers and is very similar to RestFulAPI.

Mobile Automation setup is the first step of Mobile Automation framework setup. This tutorial helps you to set up Appium. Before Appium installation we must have to complete the below prerequisites:

  1. Java (if not installed then refer step by step guide for Java Installation)
  2. Node.js (if not installed then refer step by step guide for Node.js Installation)
  3. NPM (if not installed then refer step by Step guide for NPM installation)
  4. Android Studio and Emulator (if not installed then refer step by step guide for Android Studio Installation)
  5. Emulators/Simulators and Real devices.

Steps to Install Appium

Method 1: Appium Installation from Command Line

Step i:  Appium Server should be downloaded from Node. To install Appium from NPM library run below command:

npm -g appium

Above command install Appium on your machine globally.

Step ii: Start Appium from Command line: To start Appium from command line run below command:

appium

Method 2: Appium GUI Installation

Step i: Download Appium Java Client library from Appium website download section. Refer below URL to download directly.

http://appium.io/downloads.html

https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22io.appium%22%20AND%20a%3A%22java-client%22

Step ii: Download Appium Desktop as per your machine configuration from below link:https://github.com/appium/appium-desktop/releases/tag/v1.22.0

Step iii: Once Appium Desktop is downloaded, follow the installer wizard and complete Appium Desktop installation.

Step iv: To start Appium go to Desktop and click on “AppIum” icon.

Step v: Appium can be started from command line also. To start Appium command line open command prompt and type appium

Step vi: Verify Appium Server Window and use server URL in code.

Step vii: By default, Appium server started on 4723 but if you want to change the default port then you can change from Advance settings.

Well, done! Now you have completed Appium installation successfully and your machine is ready to write the first Mobile Automation Test. Hope the above article helps you in Appium Installation. Now feel free to share your feedback about our articles on info@thoughtcoders.com.

0 0 vote
Article Rating
close

Subscribe to our Newsletter:

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Open chat
Feel free to contact