2. Agenda
Why to Integrate Web & Android Device Automation
Why Selenium-Robotium
How to Integrate
Demo
Q & A
3. Android Era
You are living in Mobile Era
Android is Market leader
Increasing products having Web Interface and respective Mobile
clients
4. Why to Integrate
To Eliminate manual efforts,
Data Synchronization between Device App and Web App
Cross functionality verification on both platforms
Synchronous interaction between Web App and Device App.
Test over different networks-3G, Wifi
Web Portals
Mobile Apps
5. Why Selenium- Robotium
Selenium –
Open Source
Supports all browsers like IE, Firefox, Mozilla, Safari
Supports all Operating Systems.
Supports all programming languages Java,Ruby,C# and Python.
Run multiple tests at a time.
Simple API to interact with HTML elements.
Easy to maintain
6. Why Selenium- Robotium
Robotium Open Source
Supports Multiple Android versions
Write once, run on any Android Device
Easy to write, Shorter code
No need of Android App Source Code
Full supports for Android UI elements
Built on Java language and uses Junit Framework
8. How to Integrate
Call the Robotium TestCase from Automation framework using
java.lang.Runtime class
Integration Bridge CodeString mobileTest = (adb shell am instrument –w –e class
TestSuiteName+"#"+TestCaseName
testPackageName/android.test.InstrumentationTestRunner);
Process pr =Runtime.getRuntime().exec(mobileTest);
stdout = pr.getInputStream ();
BufferedReader brCleanUp = new BufferedReader (new
InputStreamReader (stdout));
String mobileOutput = brCleanUp.readLine ();
Mobile test case log written in logfiles and fetched to machine using
adb commands