SlideShare a Scribd company logo
1 of 3
Appium Setup & Configuration on Windows
Pre-requisites:
1. Appium Client App
2. Java Development Kit (JDK)
3. Android SDK
4. Eclipse ADT plugin
5. Make sure the above list of apps/softwares is installed on PC
Setup Steps:
1. Install Appium client app
2. Follow the instruction to complete the installation process.
3. Configure Appium:
Launch Appium inspector first.
Android Settings -
b. Click on Android Settings button at the top left corner
c. Select Platform Name = Android
d. Select Automation Name = Appium
e. Select PlatformVersion = Your Android device’s OS version
General Settings -
a. Click on General Settings button besides Android Settings button.
b. Keep the server address & port number noted, we will need it while scripting.
c. Server Address: 127.0.0.1
d. Port Number: 4723
4. Connect Android device with PC in USB debugging mode to run Appium test.
(I hope everyone knows how to enable the USB debugging option in an Android
device. Let me know if anyone don’t.)
5. Verify the device is connected properlywith the PC using ADB server
Run a command “adb devices”
It will show connected device name.
6. Locating Android App Elements Using UI Automator Viewer.
a. Run uiautomator.bat file from the folder tools under sdk bundle
b. Open any installed application from your device, say Calculator App
c. In UI Automator Viewer, click on Device Screenshot image button at the top right
corner.
d. It will process to capture the device screenshot.(After capturing the screenshot, it
will show the Calculator app’s UI in UI Automator Viewer on left pane)
e. On left pane, it will show the Calculator app’s UI element’s hierarchy view & the
property of each element.
f. Select the elements whichever you want to locate & find the Xpath of respective
element using the properties shown on right pane.
7. Find the .APK file package name & launcher activity name by using APKInfo
application.
a. Install APKInfo application from Google Store.
b. Launch the APKInfo app, it will show you installed applications list.
c. Scroll down to Calculator app & now tap & hold it.
d. Select the Detailed Information option
e. Here it will show the details & you can find the app package name & app activity
name.
8. Configure project in Eclipse for Appium.
a. Create New project in Eclipse.
- Start Eclipse
- Set Workspace
- Create new project in Eclipse with some package name, say Android
- Install TestNG
b. Download latest Jars of WebDriver & Appium Client Libraries from here
c. Add Jar files in Project’s build path
9. Running first test script using Eclipse.
a. Gather required capabilities first.
- Find Android device name, say “ZX1B32FFXF”
(You will get it by using command “adb devices” in command prompt)
- Find Android Software App Package Name, say “com.android.calculator2”
(You will get it using APKInfo app)
- Find App Activity Name, say “com.android.calculator2.calculator”
(You will get it using APKInfo app)
- Find Android OS version, say 4.4.4
(Settings > About Device > Android Version)
b. Launch & Start Appium Node server.
- Launch Appium (Server Address: 127.0.0.1 & Port Number: 4723)
- Start Appium Node Server (Click on Start button at right top)
c. Create Appium Test Script in Eclipse
Pre-requisites -
deviceName - Name of device displayed using adb devices command
CapabilityType.VERSION - OS version of your device
appPackage - App’s package name
appActivity - App’s activity name
d. Running Appium Test Script
- Select Run As > TestNG from option
- View your Android phone screen
AppiumSetupConfigurationonWindows

More Related Content

What's hot

DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)Daniel Meixner
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculatorVlad Kolesnyk
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themesDeepa Rani
 
Publishing app to play store
Publishing app to play storePublishing app to play store
Publishing app to play storeShamsher Ahmed
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Aravindharamanan S
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Svetlin Nakov
 
Creating selenium remote control tests
Creating selenium remote control testsCreating selenium remote control tests
Creating selenium remote control testsDang Nguyen
 
How to run your first selenium test in visual studio 2008 with c
How to run your first selenium test in visual studio 2008 with cHow to run your first selenium test in visual studio 2008 with c
How to run your first selenium test in visual studio 2008 with cTrupti Jethva
 
Appium understanding document
Appium understanding documentAppium understanding document
Appium understanding documentAkshay Pillay
 
Selenium
SeleniumSelenium
Seleniumnil65
 
AKiOSMagic Manual
AKiOSMagic ManualAKiOSMagic Manual
AKiOSMagic ManualAlex Kir
 
Connecting your android application to cloud.
Connecting your android application to cloud.Connecting your android application to cloud.
Connecting your android application to cloud.Eng Chrispinus Onyancha
 
Getting Started with Tizen TV Web Apps
Getting Started with Tizen TV Web AppsGetting Started with Tizen TV Web Apps
Getting Started with Tizen TV Web AppsRyo Jin
 
Mobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason HugginsMobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason HugginsSauce Labs
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGapDoncho Minkov
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and ExtensionsYana Altunyan
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless WaySrushith Repakula
 
Test automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra SolutionsTest automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra SolutionsQUONTRASOLUTIONS
 
Essentials of developing_tizen_web_application_en_1.0
Essentials of developing_tizen_web_application_en_1.0Essentials of developing_tizen_web_application_en_1.0
Essentials of developing_tizen_web_application_en_1.0Saima Ashiq
 

What's hot (19)

DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculator
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themes
 
Publishing app to play store
Publishing app to play storePublishing app to play store
Publishing app to play store
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021
 
Creating selenium remote control tests
Creating selenium remote control testsCreating selenium remote control tests
Creating selenium remote control tests
 
How to run your first selenium test in visual studio 2008 with c
How to run your first selenium test in visual studio 2008 with cHow to run your first selenium test in visual studio 2008 with c
How to run your first selenium test in visual studio 2008 with c
 
Appium understanding document
Appium understanding documentAppium understanding document
Appium understanding document
 
Selenium
SeleniumSelenium
Selenium
 
AKiOSMagic Manual
AKiOSMagic ManualAKiOSMagic Manual
AKiOSMagic Manual
 
Connecting your android application to cloud.
Connecting your android application to cloud.Connecting your android application to cloud.
Connecting your android application to cloud.
 
Getting Started with Tizen TV Web Apps
Getting Started with Tizen TV Web AppsGetting Started with Tizen TV Web Apps
Getting Started with Tizen TV Web Apps
 
Mobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason HugginsMobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason Huggins
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and Extensions
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 
Test automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra SolutionsTest automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra Solutions
 
Essentials of developing_tizen_web_application_en_1.0
Essentials of developing_tizen_web_application_en_1.0Essentials of developing_tizen_web_application_en_1.0
Essentials of developing_tizen_web_application_en_1.0
 

Similar to AppiumSetupConfigurationonWindows

Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
Day2GDSC.pptx
Day2GDSC.pptxDay2GDSC.pptx
Day2GDSC.pptxGDSCICOER
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdfRebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdfRebaMaheen
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hourssjmarsh
 
Android Application Development Environment Setup
Android Application Development Environment SetupAndroid Application Development Environment Setup
Android Application Development Environment SetupIan Pinto
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android developmentGhufran Hashmi
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialmaster760
 
02 getting start with android app development
02 getting start with android app development02 getting start with android app development
02 getting start with android app developmentSokngim Sa
 
Creation of simple application using - step by step
Creation of simple application using - step by stepCreation of simple application using - step by step
Creation of simple application using - step by steppriya Nithya
 
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Svetlin Nakov
 
Introduction of phonegap installation and configuration of Phonegap with An...
Introduction of phonegap   installation and configuration of Phonegap with An...Introduction of phonegap   installation and configuration of Phonegap with An...
Introduction of phonegap installation and configuration of Phonegap with An...Rakesh Jha
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guidemagicshui
 

Similar to AppiumSetupConfigurationonWindows (20)

APPIUM
APPIUMAPPIUM
APPIUM
 
Appium- part 1
Appium- part 1Appium- part 1
Appium- part 1
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
Appium
AppiumAppium
Appium
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Day2GDSC.pptx
Day2GDSC.pptxDay2GDSC.pptx
Day2GDSC.pptx
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hours
 
Android Application Development Environment Setup
Android Application Development Environment SetupAndroid Application Development Environment Setup
Android Application Development Environment Setup
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
02 getting start with android app development
02 getting start with android app development02 getting start with android app development
02 getting start with android app development
 
Creation of simple application using - step by step
Creation of simple application using - step by stepCreation of simple application using - step by step
Creation of simple application using - step by step
 
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
 
Introduction of phonegap installation and configuration of Phonegap with An...
Introduction of phonegap   installation and configuration of Phonegap with An...Introduction of phonegap   installation and configuration of Phonegap with An...
Introduction of phonegap installation and configuration of Phonegap with An...
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Mobile Apps Security Testing -3
Mobile Apps Security Testing -3Mobile Apps Security Testing -3
Mobile Apps Security Testing -3
 

AppiumSetupConfigurationonWindows

  • 1. Appium Setup & Configuration on Windows Pre-requisites: 1. Appium Client App 2. Java Development Kit (JDK) 3. Android SDK 4. Eclipse ADT plugin 5. Make sure the above list of apps/softwares is installed on PC Setup Steps: 1. Install Appium client app 2. Follow the instruction to complete the installation process. 3. Configure Appium: Launch Appium inspector first. Android Settings - b. Click on Android Settings button at the top left corner c. Select Platform Name = Android d. Select Automation Name = Appium e. Select PlatformVersion = Your Android device’s OS version General Settings - a. Click on General Settings button besides Android Settings button. b. Keep the server address & port number noted, we will need it while scripting. c. Server Address: 127.0.0.1 d. Port Number: 4723 4. Connect Android device with PC in USB debugging mode to run Appium test. (I hope everyone knows how to enable the USB debugging option in an Android device. Let me know if anyone don’t.) 5. Verify the device is connected properlywith the PC using ADB server Run a command “adb devices” It will show connected device name. 6. Locating Android App Elements Using UI Automator Viewer. a. Run uiautomator.bat file from the folder tools under sdk bundle b. Open any installed application from your device, say Calculator App c. In UI Automator Viewer, click on Device Screenshot image button at the top right corner. d. It will process to capture the device screenshot.(After capturing the screenshot, it will show the Calculator app’s UI in UI Automator Viewer on left pane) e. On left pane, it will show the Calculator app’s UI element’s hierarchy view & the property of each element. f. Select the elements whichever you want to locate & find the Xpath of respective element using the properties shown on right pane.
  • 2. 7. Find the .APK file package name & launcher activity name by using APKInfo application. a. Install APKInfo application from Google Store. b. Launch the APKInfo app, it will show you installed applications list. c. Scroll down to Calculator app & now tap & hold it. d. Select the Detailed Information option e. Here it will show the details & you can find the app package name & app activity name. 8. Configure project in Eclipse for Appium. a. Create New project in Eclipse. - Start Eclipse - Set Workspace - Create new project in Eclipse with some package name, say Android - Install TestNG b. Download latest Jars of WebDriver & Appium Client Libraries from here c. Add Jar files in Project’s build path 9. Running first test script using Eclipse. a. Gather required capabilities first. - Find Android device name, say “ZX1B32FFXF” (You will get it by using command “adb devices” in command prompt) - Find Android Software App Package Name, say “com.android.calculator2” (You will get it using APKInfo app) - Find App Activity Name, say “com.android.calculator2.calculator” (You will get it using APKInfo app) - Find Android OS version, say 4.4.4 (Settings > About Device > Android Version) b. Launch & Start Appium Node server. - Launch Appium (Server Address: 127.0.0.1 & Port Number: 4723) - Start Appium Node Server (Click on Start button at right top) c. Create Appium Test Script in Eclipse Pre-requisites - deviceName - Name of device displayed using adb devices command CapabilityType.VERSION - OS version of your device appPackage - App’s package name appActivity - App’s activity name d. Running Appium Test Script - Select Run As > TestNG from option - View your Android phone screen