Web android automation-Darshan Padmawar

666 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
666
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Web android automation-Darshan Padmawar

  1. 1. Web & Android Device Integrated Automation Testing Darshan Padmawar, Automation Test Consultant, Synechron Technologies Pvt. Ltd. © 2012 Synechron All Rights Reserved www.synechron.com
  2. 2. Agenda Why to Integrate Web & Android Device Automation Why Selenium-Robotium How to Integrate Demo Q & A
  3. 3. Android Era  You are living in Mobile Era  Android is Market leader  Increasing products having Web Interface and respective Mobile clients
  4. 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. 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. 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. 7. Integration Architecture Driver Script Selenium TestCase Web TC OutPut & Logs Robotium TestCase Compare o/p Mobile TC OutPut & Logs
  8. 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. 9. Demo
  10. 10. Q&A
  11. 11. Thank You  darshanpadmawar@gmail.com

×