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