Test Automation On Android Platform Using Robotium


Published on

Session Presented at 2nd IndicThreads.com Conference On Software Quality held on 25-26 March 2011 in Pune, India. WEB: http://Q11.IndicThreads.com

Published in: Technology

Test Automation On Android Platform Using Robotium

  1. 1. Test Automation on android using Robotium Amit Dixit Synerzip India Pvt.Ltd
  2. 2. Objective <ul><ul><li>Testing on android platform. </li></ul></ul><ul><ul><li>Android Testing Framework. </li></ul></ul><ul><ul><li>Current limitations of android testing framework. </li></ul></ul><ul><ul><li>Robotium and its current features </li></ul></ul><ul><ul><li>Test Android apk file with Robotium </li></ul></ul><ul><ul><li>Testing on emulator as well as on devices using Robotium </li></ul></ul><ul><ul><li>Current limitations of Robotium tool </li></ul></ul><ul><ul><li>Future enhancements of Robotium </li></ul></ul><ul><ul><li>Demo </li></ul></ul>
  3. 3. What is android <ul><ul><li>Android is a software stack for mobile devices that includes an operating system, middleware and key applications </li></ul></ul><ul><ul><li>Android application components </li></ul></ul><ul><ul><li>Android Manifest file </li></ul></ul><ul><ul><li>Application resources </li></ul></ul>
  4. 4. Android Testing Framework <ul><ul><li>Android platform integrates a testing framework. </li></ul></ul><ul><ul><li>Framework supports </li></ul></ul><ul><ul><li>The Android testing framework is based on the JUnit 3. </li></ul></ul>
  5. 5. Current Android Instrumentation Limitations.
  6. 6. What is Robotium? <ul><ul><li>Robotium is very powerful framework for Android platform. Robotium Supports </li></ul></ul>
  7. 7. Robotium Features
  8. 8. Prerequisits for creating test project
  9. 9. Future Enhancements
  10. 10. How to create Test Project
  11. 11. Create your Test Case
  12. 12. Modify Manifest.xml file <ul><ul><li>Add Screen Shots from Eclipse </li></ul></ul>
  13. 13. Add Robotium Jar File
  14. 14. Sample Test Case
  15. 15. Sample Test Case
  16. 16. Instrumentation Code Sample
  17. 17. Current Robotium Limitations <ul><ul><li>Robotium does not support flash and web based applications. </li></ul></ul><ul><ul><li>Robotium does not work on Canvas. </li></ul></ul>
  18. 18. ? Questions