Appium

Setting Up Appium on Local Machine

Estimated reading: 4 minutes 290 views
appium-featured-image

In the previous guide, we introduced you to Appium and its benefits. Now, let’s get started with setting up Appium on your local machine so you can begin writing and executing your tests.

Prerequisites

Before you start, ensure you have the following installed.

  • Java Development Kit (JDK): Appium requires Java, so download and install the JDK.
  • Node.js: Appium is built on Node.js, so you'll need to install it.
  • Android SDK: Necessary for Android app testing.
  • Xcode: N/A Xcode: Required for iOS app testing.

Getting Started

Install Java and Configure the Environment Variables.

  1. Download and install the JDK from the Oracle website.
  2. Next we are going to setup the JAVA_HOME and update the PATH environment variable to ensure Java is configured correctly on your system.

Install Node.js

Installing Node.js is essential for setting up Appium, as Appium relies on Node.js. With Node.js, you can run the Appium server and use npm to install Appium and its dependencies efficiently. This setup is crucial for automating mobile application tests on both Android and iOS platforms.

Install Appium CLI & Appium Doctor Commands

Install Appium: Appium is an open-source tool for automating mobile applications on Android and iOS. To get started, you need to install Appium and its dependencies:

  • Open your Command Prompt Terminal and run the following command.
bash
npm install -g appium

Install Appium Doctor: Appium Doctor is a tool that helps you verify that all the dependencies required for running Appium are properly installed on your system. It checks for Node.js, Java, Android SDK, Xcode and more.

Install Appium Desktop GUI

Appium Desktop is a graphical user interface (GUI) for Appium, providing an easy way to interact with the Appium server and inspect mobile application elements. It simplifies the process of setting up and managing Appium sessions, making it an essential tool for mobile test automation.
appium-desktop-app
Appium Desktop App

Install Android SDK

To use Appium for automating tests on Android devices, you need to install the Android Software Development Kit (SDK). The Android SDK provides the necessary tools and libraries for developing and testing Android applications. It includes the Android platform tools, such as adb, which Appium uses to interact with Android devices and emulators.

Configure Android Environment Variables

  • Set ANDROID_HOME and update the PATH environment variable.
.bash_profile/.zshrc
export ANDROID_HOME=/path/to/android/sdk
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH

Install Xcode

To use Appium for testing iOS applications, you’ll need to install Xcode on your Mac. Xcode is Apple’s integrated development environment (IDE) for macOS, used for developing software for iOS, macOS, watchOS, and tvOS. It includes a suite of software development tools, including the iOS Simulator, which is essential for testing iOS apps with Appium.

xcode-in-the-mac-appstore
Searching For XCode In Mac App Store
  • Follow this guide below to Setuo Xcode on your machine.



Conclusion

Congratulations! You have successfully set up Appium on your local machine. Now you’re ready to write your first test case with Appium. In the next guide, we’ll walk you through Writing Your First Appium Test Case with Appium.

Leave a Comment

Share this Doc

Setting Up Appium on Local Machine

Or copy link

CONTENTS
Review Your Cart
0
Add Coupon Code
Subtotal
Total Installment Payments
Bundle Discount