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