For learning automated mobile testing
- Download latest node and npm tools MSI (version >= 6.0) https://nodejs.org/download/release/v6.3.0/node-v6.3.0-x64.msi
- The npm and nodejs paths should be in your PATH environment variable. (by default they are)
- Open admin cmd prompt
- Run the command npm install -g appium which will install Appium from NPM
- run appium from the prompt.
- Download and install https://github.com/appium/appium-desktop/releases
- Download the latest Java JDK here (accept the license agreement first). Set 'JAVA_HOME' to be your JDK path. The
binin that directory should be added to your PATH variable. - Install the Android SDK. Set the
ANDROID_HOMEenvironment variable to be your Android SDK path and add thetoolsandplatform-toolsfolders to your PATH variable. - Install Apache Ant or use the one that comes with the Android Windows SDK in the eclipse\plugins folder. Be sure to add the folder containing Ant to your PATH variable.
- Install Apache Maven and set the M2HOME and M2 environment variables. Set
M2_HOMEto the directory maven is installed in, and setM2to thebinin that directory. Add the path you used forM2to your PATH. - To run tests on Windows, you will need to have the Android Emulator booted or an Android Device connected that is running an AVD with API Level 17 or greater. Then run Appium on the command line (via the
appiumcommand) - Your test script should ensure that the
platformVersioncapability corresponds to the emulator or device version you are testing, and that theappcapability is an absolute path to the .apk file of the Android app.
- Android Application run with -t
Do what you want with it