18
Test Automation on android using Robotium Amit Dixit Synerzip India Pvt.Ltd

Test Automation On Android Platform Using Robotium

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Test Automation On Android Platform Using Robotium

Test Automation on android using Robotium

Amit Dixit

Synerzip India Pvt.Ltd

Page 2: Test Automation On Android Platform Using Robotium

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

Page 3: Test Automation On Android Platform Using Robotium

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

Page 4: Test Automation On Android Platform Using Robotium

Android Testing Framework

• Android platform integrates a testing framework.• Framework supports

• The Android testing framework is based on the JUnit 3.

Page 5: Test Automation On Android Platform Using Robotium

Current Android Instrumentation Limitations.

Page 6: Test Automation On Android Platform Using Robotium

What is Robotium?

• Robotium is very powerful framework for Android platform. Robotium Supports

Page 7: Test Automation On Android Platform Using Robotium

Robotium Features

Page 8: Test Automation On Android Platform Using Robotium

Prerequisits for creating test project

Page 9: Test Automation On Android Platform Using Robotium

Future Enhancements

Page 10: Test Automation On Android Platform Using Robotium

How to create Test Project

Page 11: Test Automation On Android Platform Using Robotium

Create your Test Case

Page 12: Test Automation On Android Platform Using Robotium

Modify Manifest.xml file

• Add Screen Shots from Eclipse

Page 13: Test Automation On Android Platform Using Robotium

Add Robotium Jar File

Page 14: Test Automation On Android Platform Using Robotium

Sample Test Case

Page 15: Test Automation On Android Platform Using Robotium

Sample Test Case

Page 16: Test Automation On Android Platform Using Robotium

Instrumentation Code Sample

Page 17: Test Automation On Android Platform Using Robotium

Current Robotium Limitations

• Robotium does not support flash and web based applications.

• Robotium does not work on Canvas.

Page 18: Test Automation On Android Platform Using Robotium

?Questions