How to Set Up Appium 2.0 ๐ฒ | Complete Installation Guide | Part I | LambdaTest
Explore Appium 2.0 like never before in this comprehensive tutorial series by ๐๐ข๐๐๐ก๐๐ซ๐ญ๐ก ๐๐ก๐ฎ๐ค๐ฅ๐ (@๐ฌ๐ข๐๐ก๐๐ซ๐ญ๐ก๐ฌ๐ก๐ฎ๐ค๐ฅ๐๐), a seasoned QA expert. In Part 1, you'll learn everything you need to set up Appium 2.0, from understanding prerequisites to installing Node.js, npm, Appium Doctor, drivers, and plugins.
Siddharth also guides you through starting the Appium server, setting up Java JDK, and configuring Android Studio for seamless mobile app testing. Plus, you'll learn frequently used commands to manage drivers, plugins, and more.
00:00 Introduction
02:43 Appium 2.0 and Prerequisites
04:32 Installing Node.js and NPM
07:52 Installing Appium 2.0
09:17 Installing Appium-Doctor, Drivers, and Plugins
12:23 Running the Appium Server
13:25 Additional Setup for Appium 2.0
18:30 Frequently Used Commands in Appium 2.0
20:21 Closing Words
Introduction to Appium 2.0
Appium 2.0, released in 2022, introduces significant enhancements over its predecessor. It adopts a modular architecture, allowing independent installation and updates of drivers and plugins. This flexibility supports custom development, fostering greater contribution and innovation within the testing community.
Prerequisites
Before setting up Appium 2.0, ensure the following:
Operating System: Compatible with Windows, macOS, or Linux.
Node.js and npm: Install the latest version of Node.js, which includes npm.
Java JDK and Android Studio: Required for Android-based mobile automation.
Installing Node.js and npm
Method 1: Download the Node.js installer from Node.js Official Website and follow the setup instructions.
Method 2 (macOS): Use Homebrew with the command brew install node.
Verification: Confirm installation by running node -v and npm -v commands in the terminal.
Installing Appium 2.0
Use the following command to install Appium globally:
npm install -g appium@latest.
Verify installation success with:
appium -v.
Setting Up Appium Doctor
Appium Doctor ensures all dependencies are correctly installed:
Install using:
npm install -g appium-doctor.
Run the tool with:
appium-doctor to identify and resolve missing dependencies.
Drivers and Plugins Installation
In Appium 2.0, drivers and plugins are installed separately:
Install essential drivers:
Android (UIAutomator2): appium driver install uiautomator2.
iOS (XCUITest): appium driver install xcuitest.
List installed drivers using:
appium driver list.
Running the Appium Server
Start the Appium server with the command:
appium.
The server handles automation requests and facilitates communication with devices.
Additional Configuration
For enhanced testing, configure the environment:
Set up Java JDK and Android SDK paths.
Install and configure Android Studio for emulators.
Frequently Used Commands
Appium 2.0 introduces commands for managing drivers and plugins:
Install a Plugin: appium plugin install <plugin-name>.
Uninstall a Plugin: appium plugin uninstall <plugin-name>.
Update a Driver: appium driver update <driver-name>.
Appium 2 Migration Guide: Migrating From Appium 1.x To Appium 2.x
A Complete Tutorial to Appium Capabilities for Mobile Automation
Sidharth Shukla
Sidharth Shukla is a skilled Software Development Engineer in Test (SDET) currently contributing to Amazon in Canada. With a robust background in API, UI, and Mobile Automation, Sidharth is a key player in the realm of DevOps. Beyond his technical prowess, Sidharth is a prolific writer and video creator.