Pages

Monday, April 2, 2018

Appium Configuration in Windows.


To Configure Appium in Windows we need following Software's.
  • ·       JDK 1.7 or above ( preferred latest 1.8 ).
  • ·       Android SDK.
  • ·       Appium Server.
  • ·       Jar Files - Selenium Server, Appium Client Library files ( based on your Script Language ).
  • ·       Eclipse.
  • ·       ADB driver.

Steps to Configure Appium.
To run Appium Script first we have to Enable USB Debugging 'ON'  and Stay Awake in your device for this we have enable Developer Options.
To enable Developer Options,  we have to go Android Device --> Settings --> About Phone --> Build Number and Click or Tap on Build Number 6 times to enable Developer options. Once Developer Options Enabled Check Stay Awake and USB Debugging 'ON'.

Step 1 : Download JDK and configure JAVA_HOME in Environment Variable.
JDK Download Location : Download 1.7 or above JDK
Setting JAVA_HOME : Start Menu --> Computer --> System Properties --> Advanced System properties --> Open Advanced Tab --> Environment variables and add a new system variable JAVA_HOME that points to your JDK folder.
Ex :-  VARIABLE NAME : JAVA_HOME
VARIABLE VALUE : C:\Program Files\Java\jdk.1.8.0_21
Add to Path Environment Variable : Click at Edit for Path.
PATH : %JAVA_HOME%\bin;

Step 2 : Download and Install Android SDK.
Android SDK download location :
We need to install the Android SDK to drive the test scripts on devices.
Note : While installing Set up Studio in C folder and Set Up SDK in any other folder for avoid conflicts for running Scripts.
To Set up Android Studio on windows :
1. Launch the .exe file you just downloaded.
2. Follow the set up wizard to install Android Studio and any necessary SDK tools.
Note : First it will install Android Studio , later SDK please observe Saving Locations Carefully.
Setting ANDROID_HOME : Start Menu --> Computer --> System Properties --> Advanced System properties --> Open Advanced Tab --> Environment variables and add a new system variable ANDROID_HOME that points to your ANDROID SDK folder.
Ex :-  VARIABLE NAME : ANDROID_HOME
VARIABLE VALUE : D:\Android SDK
Add to Path Environment Variable : Click at Edit for Path.
PATH : %ANDROID_HOME%\tools; %ANDROID_HOME%\platform-tools;

Step 3 : Install Appium.
Appium Download Location : Appium for windows.zip
or you can download Appium.exe file from
Note : Appium installer file in bitbucket location. Please prefer that one.
Run the  Appium-installer.exe file.  After installing, Appium window will be display in that note Ip address and Port Number and click Start button in Appium window.

Step 4. Download Jar files.
Jar files Download location :
Under Selenium Standalone Server click at Download Version number.
Appium Client Library :  Click at Appropirate language in the provided location and after navigating download Jar file in that location.

Step 5 : Download Eclipse.
Download Eclipse and Create a new Project in Eclipse and add 2 jar files into the project.
Right click on Project --> Click on Build path --> Click on Configure Build Path --> Go to Library Section --> Click on Add External jars --> Attach 2 jar files --> Click Apply and OK.

Pre-Conditions for To Run the Appium Class :
  • ·       Appium Server should be start.
  • ·      Device should connect to the System.


To check your device connected to the system or not.
Open Command prompt and enter adb devices.
It will display list of devices attached with Device Serial Number and Device.
If it is displaying device serial number blank or error message, device driver not installed in your system ( Some times it will display error message when it is connected ).
You should install device driver explicitely if it is not install automatically when device connected to Android SDK.

Step 6 : Install ADB Driver installer :
ADB driver installer download location : ADB driver installer ( 9.2 MB )
Install .exe file and after installation adb driver window will open and it will display connected device information.

In device, We will get Allow USB debugging with Computer RSA key Finger Print , Click at Check box and Click Ok. This Pop up will appear only first time if you check the check box.

Once Set Up is completed. Now Run with Sample Class.


No comments:

Post a Comment