Appium setup for Android
Some simple steps to start Appium on windows,
Install JDK and set path
Download JDK version 1.8+ on your windows machine using below link,
https://www.oracle.com/in/java/technologies/javase/javase-jdk8-downloads.html and Install It.
After installation go to Control Panel > System and Security > System >Advanced system settings select environment variable then click on new under system variables, enter variable name and provide the path for your JDK.
If JDK is already there in your system, then simply validate JDK path in advanced system settings and move towards next step.
Android SDK installation and setup
Download Android studio using link, https://developer.android.com/studio
Select desired path for the app and install it.
After installation go to configure >SDK Manager and download android API’s as per your requirements, copy the SDK manager path.
· Set Path for SDK Manager
Go to Control Panel > System and Security > System >Advanced system settings, select environment variable then click on new under system variables, enter variable name and paste the SDK path.
· Set path for platform-tools
Go to the SDK folder by using path, C:\Users\Ashutosh\AppData\Local\Android\Sdk
Select platform tools, copy the platform-tools path.
Go to Control Panel > System and Security > System >Advanced system settings, select environment variable then click on new under system variables, enter variable name and paste the platform-tools path.
· Set path for tools
Go to the SDK folder by using path, C:\Users\Ashutosh\AppData\Local\Android\Sdk
Select tools, copy the tools path.
Go to Control Panel > System and Security > System >Advanced system settings, select environment variable then click on new under system variables, enter variable name and paste the tools path.
· Set path for UI-Automator
Go to the SDK folder by using path, C:\Users\Ashutosh\AppData\Local\Android\Sdk
Select tools, click on bin folder, copy the path.
Go to Control Panel > System and Security > System >Advanced system settings, select environment variable then click on new under system variables, enter variable name and paste the bin folder path.
Appium desktop client installation
Download the Appium server from the given link, https://appium.io/downloads.html and install it
Eclipse setup
Download eclipse using given link,
https://www.eclipse.org/downloads/packages/release and install it.
Project setup in eclipse
Import your project in eclipse if you don’t have simply create new maven project.
Add selenium JAR files and other external JARs as per the project requirement.
For adding jar go to, Project >Build path >Configure build path
Download AspectJ weaver jar using path,
https://jar-download.com/artifacts/org.aspectj/aspectjweaver
Mention URL and port number of Appium server in your script and start execution.