Download And Setup Appium On Windows
How To Download And Setup Appium On Windows OS ?
To setup Appium for automation below are the steps :
Prerequisites :
-
Download and Setup Java.Setup Guide
-
Download and Install Eclipse.
-
Download and Setup Maven to add Selenium,TestNG and Appium Dependencies.Setup Guide
-
Install Node.js zip from here and extract the files at some location(To check it is installed properly,navigate to that directory and run command'node -v' on cmd).
-
Download and Setup Android Studio for SDK tools.
Download Android Studio
-
Download Android Studio from this link : https://developer.android.com/studio
-
Install Android Studio.
-
Run the application.
Install SDK Tools In Android Studio
-
Install Android Studio.
-
Run the application.
-
Click on 'More Actions' and go to the 'SDK Manager'.
-
In SDK Tools check for tools if they're installed, if not then install the SDK Tools. Apply the changes.
Set Environment Variable For SDK
-
Copy the sdk path.
-
Go to the environment variable.
-
In User Variables create a new variable as ANDROID_HOME and pass the copied path in its value, save the changes.
-
In Path variable add " %ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools; ".
-
Save all the changes.
-
Run command 'adb devices' in cmd to check.
Create Virtual Device(EMULATOR)
-
In More Actions click on Virtual Device Manager and create device.
-
Select a device(Let Pixel 4) or create a new hardware profile and proceed Next .
-
Install API Level, if not installed, select the API Level and proceed with Next and Finish.
-
A device has been created .
-
Launch the device.
-
Run command 'adb devices' in cmd to check.the emulator has been attached or not.
Download and Install Appium Desktop
Download Appium Desktop .exe file(Appium-windows-1.20.2) from this link: https://github.com/appium/appium-desktop/releases
Once downloaded,it will be installed automatically.
Open the application,it will look like this :
Create a Maven Project In Eclipse
-
Click on File, navigate to New and click the option Other… .
-
Expand the option Maven and select Maven Project .Click Next ..
-
Check the box of option Create a simple project and proceed with Next.
-
Fill a relevantGroup Id and Artifact Id and proceed with Finish.
-
Maven project has been created and it would be displayed in Project Explorer.
-
Add below mentioned dependencies for Selenium, TestNG(optional) and Appium in pom.xml and save the file :
1. selenium-java :
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.14.0</version>
</dependency>
2. testng :
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
</dependency>
3. java-client :
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>7.4.1</version>
</dependency>
4. jcommander :
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.48</version>
</dependency>
5. guava :
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.0</version>
</dependency>
-
Now,update the Maven Project.
Refer next page Create First Appium Test