Appium_setup_and_learn_configuration.pptx

ssuserac318e 0 views 10 slides Oct 24, 2025
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

This lecture is related to understanding of automated testing.


Slide Content

Mobile Automation Environment Setup (Appium + UiAutomator2 + Inspector) Name: Akshit | Reg No: 12205575

Install Prerequisites Java JDK (8/11 preferred) → set JAVA_HOME Node.js + npm → required for Appium Android Studio → for SDK, AVD emulator ADB (Android Debug Bridge) → comes with Android SDK Verify installs: java -version | node -v | npm -v | adb version

Install Appium Install Appium globally: npm install -g appium Install Appium Doctor: npm install -g appium-doctor Check setup using: appium-doctor

Install UiAutomator2 Driver Command: appium driver install uiautomator2 Verify installation with: appium driver list UiAutomator2 is the default Android automation driver

Configure Android Environment Open Android Studio → SDK Manager → Install SDK Tools + API Levels (e.g., API 30) Set Environment Variables: ANDROID_HOME Add to PATH: $ANDROID_HOME/platform-tools and $ANDROID_HOME/tools Check device connection: adb devices

Install Appium Inspector Download from: github.com/appium/appium-inspector/releases Install and launch Appium Inspector GUI tool to inspect UI elements and verify locators

Desired Capabilities (UiAutomator2) platformName: Android platformVersion: 11.0 deviceName: Pixel_4_API_30 automationName: UiAutomator2 app: /path/to/app.apk Used to configure session between client and server

Start Appium Server & Inspector Start Appium server: appium Default server URL: http://127.0.0.1:4723 Paste Desired Capabilities in Inspector → Start Session

First Test Script (Python Example) Import webdriver from appium Define desired capabilities as JSON Connect using: webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) Locate element (e.g., driver.find_element('accessibility id', 'Login')) Perform action (e.g., click) Quit driver after execution

Conclusion Appium is a cross-platform automation tool for mobile apps. UiAutomator2 is recommended for Android automation. Inspector helps to identify locators for automation. With prerequisites installed and configured, you can begin writing and running automated tests.
Tags