Get appium examples with Java client. #appium setup
- Install java 8 as follows:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
-
Download android sdk from http://developer.android.com/sdk/index.html#Other
-
Set ANDROID_HOME to your sdk folder
-
Download maven from http://mirror.fibergrid.in/apache/maven/maven-3/3.3.9/source/apache-maven-3.3.9-src.tar.gz and add to classpath
-
Download node from https://nodejs.org/dist/v5.9.1/node-v5.9.1-linux-x64.tar.xz and add node/bin to your classpath.
-
Install appium
npm install -g appium
-
Clone repository
git clone https://github.com/clmathuriya/appium-examples.git
-
Import maven project in eclipse
#development
- Update maven project right click on project > maven> update project
- Add Page class in package "com.appium.pages"
- Add TestNG tests in package "com.appium.tests"
#Running tests
- Start appium server using
appium --command-timeout 30000
- Run project as maven test
mvn test
#To run with headless emulator
- start emulator without ui
emulator -avd test -no-window