krishworkstech.com

Part 5: Setting Up the Environment (Windows & macOS)

Before we start writing Appium tests, we need to set up our computer with the right tools and configurations. Don’t worry — We’ll guide you through every step.

COVER 3
Group 1707478351

Prerequisites You’ll Need:

  • Java JDK (latest version)
  • Android Studio + Android SDK tools
  • Node.js + npm (Node Package Manager)
  • Appium Server
  • Appium Inspector (optional but recommended)
  • Device or Emulator setup
  • Environment variables configuration
Group 1707478354
Group 1707478356

Step 1: Install Java JDK

Java is the programming language we’ll use, so we need to install its development kit.

  • Go to Oracle’s Java Download page
  • Download and install the latest JDK version (choose your OS version)
  • After installation, verify in Command Prompt (Windows) or Terminal (macOS):

java -version

javac -version

You should see the installed version displayed.

Frame 1984077313
Group 1707478357

Step 2: Install Android Studio and SDK Tools

Android Studio lets you run Android emulators and manage Android SDK.

  1. Download from: https://developer.android.com/studio
  2. Install and open Android Studio
  3. Use the SDK Manager (Tools > SDK Manager) to download:
    • SDK Platforms (select the Android versions you want to test)
    • SDK Tools (including platform-tools)

Step 3: Install Node.js and npm

Appium is built on Node.js, so install it next.

  • Download from: https://nodejs.org
  • Choose the LTS (Long-Term Support) version for stability
  • Install it
  • Verify installation by running in terminal/command prompt:

node -v

npm -v

Frame 1984077314
Group 1707478364

Step 4: Install Appium Server

You can install Appium in two ways:

Option 1: Using npm (command line)

Open Terminal or Command Prompt and run:
npm install -g appium

This installs Appium globally.
To check if it’s installed correctly:
appium -v

 

Option 2: Appium Desktop (GUI)

If you prefer a graphical interface to start and inspect tests:

Frame 1984077315
Group 1707478363

Step 5: (Optional) Install Appium Inspector

Appium Inspector lets you see your app’s UI elements, which helps write test scripts.

  • It comes bundled with Appium Desktop, so if you installed that, you already have it.
  • You can launch it from Appium Desktop
Frame 1984077316
Group 1707478365

Step 6: Configure Android Device or Emulator

You need a target device to run tests on:

Emulator (Virtual Device):

  • Open Android Studio
  • Go to AVD Manager (Tools > AVD Manager)
  • Create a new virtual device with the desired Android version
  • Start the emulator

Real Android Device:

  • Enable Developer Options and USB Debugging on your phone
  • Connect your phone via USB
  • Verify connection by running:

adb devices

  • This should list your device.
Frame 1984077317
Group 1707478366

Step 7: Set Environment Variables

You need to tell your computer where Java, Android SDK, and Node.js are installed.

On Windows:

  • Open System Properties > Advanced > Environment Variables
  • Add or edit these variables:

Variable

Value Example (adjust to your paths)

JAVA_HOME

				
					C:\Program Files\Java\jdk-<version>
				
			

ANDROID_HOME

				
					C:\Users\<YourUser>\AppData\Local\Android\Sdk
				
			

PATH

				
					
Add %JAVA_HOME%\bin;
%ANDROID_HOME%\platform-tools;
%ANDROID_HOME%\tools


				
			

On macOS/Linux:

Open Terminal and add these lines to your ~/.bash_profile or ~/.zshrc:

				
					JAVA_HOME=$(/usr/libexec/java_home)
ANDROID_HOME=~/Library/Android/sdk
PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools

				
			

Then run:

				
					source ~/.bash_profile

				
			

(or source ~/.zshrc if you use zsh)

Step 8: Verify Everything Works

  • Open a terminal or command prompt
  • Run:
  • Open a terminal or command prompt
  • Run:
				
					java -version
node -v
npm -v
appium -v
adb devices

				
			

If all return valid versions or your device list, you are good to go

Building complex IoT systems?

Accelerate testing and deployment with our QEMU-integrated toolchain expertise.

Mastering Appium: A Complete Beginner-to-Expert Mobile Automation Guide

image (5) (1)
COVER 3

Part 2: Appium Architecture, Tools Setup & How Test Code Connects to Devices

COVER - PART 4

Part 3: Java Fundamentals for Test Automation

Group 1707478330
COVER 3

Part 5: Setting Up the Environment (Windows & macOS)

Group 1707478196 (1) (1)

Part 6: Understanding UiAutomator2 (Android Engine)

Group 1707478196 (1)
COVER 3

Part 8: Handling Waits and Synchronization in Appium (Android)

COVER - PART 4

Part 9: Element Locator Strategies in Android (ID, XPath, etc.)

COVER (1) (2)
COVER 3

Part 8: Handling Waits and Synchronization in Appium (Android)

COVER - PART 4

Part 9: Element Locator Strategies in Android (ID, XPath, etc.)

Scroll to Top
  • Schematic design
  • PCB and schematic source files
  • Assembling drawing files
  • Providing prototype/sample and production PCB service
  • Testing and validation of designed hardware
  • HIPAA
  • Azure Key
  • Management
  • ES, Checksum,
  • MD5sum
  • AWS
  • Azure
  • GCP
  • DigitalOcean
  • Kotlin
  • Python
  • Tensorflow
  • Computer Vision
  • ECG
  • SPO2
  • Heart Rate
  • Glucometer
  • Blood Pressure
  • UX UI Process
  • Figma and FigJam
  • Adobe Suite
  • Selenium Java
  • Postman
  • Swagger
  • Jmeter
  • SQL
  • Java Scripter
  • Test ng
  • Extents Reports
  • Flutter
  • Java
  • Kotlin
  • Swift
  • Dart
  • React JS
  • Python
  • NodeJS
  • Django
  • HTML, CSS, JS
RDBMS
  • PostgreSQL
  • Oracle
  • MySQL
  • MariaDB
No SQL Based
  • MongoDB
  • GCP
  • FirestoreDB
  • DynamoDB
  • Azure
  • CosmosDB
  • AWS