The presentation for the Colombo Selenium Meetup conducted on March 2nd, 2016. The link to sample code/project demonstrated as well as the link to the video on how to setup Appium in a Visual Studio test project.
4. So... Why Appium?
Free and open source
Active community
Similar to Selenium
Supports multiple languages; e.g.- C#, Java, Ruby
Supports Android and iOS (but not Windows Phone!)
Supports native and hybrid applications
Support mobile web (browser) automation
6. Pre-Requisites
IDE/text editor
Android SDK/XCode for Android/iOS automation
Physical devices or emulators
Google Chrome
Appium!!! (along with the language specific Appium driver)
Node.js
Download from http://appium.io/downloads.html
7. Scripting Time!!!!!
Setting up Appium in Visual Studio – https://www.youtube.com/watch?v=Aeby7_P8pKg
Sample code - https://github.com/zaurik/HybridAppAutomation.git
Visual Studio Emulator for Android - https://www.visualstudio.com/en-us/features/msft-android-
emulator-vs.aspx
8. Tips
To find connected devices:
adb devices
To extract APK info (such package name, main activity):
<android SDK directory>build-tools<android version>aapt dump badging <path to
apk>
To manually install an APK to an emulator:
adb install <path to apk>
Android UI Automator directory:
<android SDK directory>toolsuiautomatorviewer.bat
Getting a “Status 200” error with Appium? Try updating ChromeDriver in the following directories:
<Appium installation dir>node_modulesappiumbuildchromedriver
and
<Appium installation dir>node_modulesappiumnode_modulesappium-
chromedriverchromedriver
Editor's Notes
For iOS automation a Mac is requires as it relies on OS X-only libraries.
Android support: v<2.3 – No support
2.3<=v<4.2 – Selendroid
v >= 4.2 - Appium