Your SlideShare is downloading. ×
  • Like
Web android automation-Darshan Padmawar
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Web android automation-Darshan Padmawar



Published in Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Web & Android Device Integrated Automation Testing Darshan Padmawar, Automation Test Consultant, Synechron Technologies Pvt. Ltd. © 2012 Synechron All Rights Reserved
  • 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
  • 7. Integration Architecture Driver Script Selenium TestCase Web TC OutPut & Logs Robotium TestCase Compare o/p Mobile TC OutPut & Logs
  • 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
  • 9. Demo
  • 10. Q&A
  • 11. Thank You 