Appium- Android Native app test automation

I. Getting Ready First, we need download the java libraries: Appium java client - Go to this link to get it: http://mvnrepository.com/artifact/io.appium/java-client/4.0.0 Selenium Standalone - Go to this link to get: http://goo.gl/IHP6Qw Google Gson - http://mvnrepository.com/artifact/com.google.code.gson/gson/2.6.2 Download and install Appium http://appium.io/ Download and install Android SDK Please find more installation detail in google page below:  https://developer.android.com/sdk/index.html … Continue reading Appium- Android Native app test automation

How to put parameter into xpath string (Java)

When you have i situation about your xpath strings like below: ".//*[@id='bankList']/p[.='ANZ']" ".//*[@id='bankList']/p[.='HSBC']" ".//*[@id='bankList']/p[.='Barclays']"   The best way to use 1 xpath string do define all of them, Java has method to support it: String bank = ".//*[@id='bankList']/p[.='%s']"; String.format(bank, "ANZ"); // ".//*[@id='bankList']/p[.='ANZ']" String.format(bank, "HSBC"); // ".//*[@id='bankList']/p[.='HSBC']" String.format(bank, "Barclays"); // ".//*[@id='bankList']/p[.='Barclays']"

How to perform automation scripts on chrome android with appium

1.     Requirements 1.1    Android Developer Tool >= 16            http://deveper.android.com/sdk/index.html 1.2. Set environment variables: ANDROID_HOME=/path/to/android_sdk/ PATH=%PATH%;%ANDROID_HOME% 1.3. Appium  Download at: https://bitbucket.org/appium/appium.app/downloads/AppiumForWindows_1_4_0_0.zip 1.4. Chrome for android: Go to google play and download chrome then install chrome on android device. 2.     Setup Deep dive on getting Appium Server Capabilities (Caps) 2.1 Find … Continue reading How to perform automation scripts on chrome android with appium