Friday, 17 October 2014

Mobile Web Application Automation using Appium on Windows

Required files:


  • Appium from here (http://appium.io/)
  • Appium Java client library from here(https://github.com/appium/java-client)
  • Android SDK from here(http://developer.android.com/sdk/index.html)

Setup Configurations:


  • Set ANDROID_HOME to your android SDK folder.
  • Add % ANDROID_HOME %\tools and % ANDROID_HOME %\platform-tools to your path variable.
  •  Set JAVA_HOME to your JDK folder (parent folder of bin)
  • Add % JAVA_HOME %\bin to your path variable.

Steps to Run Sample Test:


  • Create a new java project in eclipse and add Appium Java client jar.
  • Start android emulator or attach real device.
  • Give device name as browser name in AppiumTest.java.
  • Start Appium server.
  • Run AppiumTest.java. as java application.

AppiumTest.java

download from here 
https://drive.google.com/file/d/0B_O5Qw2k7ap9aDZHajEyVmo2N29qa0J3bmRrYjNCSWppaERR/view?usp=sharing

No comments:

Post a Comment