Robotium Automated Testing for Android
Copyright 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2013
Production Reference: 1141113
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-801-0
www.packtpub.com
Cover Image by Ravaji Babu (<>
)
Credits
Author
Hrushikesh Zadgaonkar
Reviewers
Krzysztof Fona
Kristiono Setyadi
Micha Szpruta
Acquisition Editors
Kevin Colaco
Aarthi Kumaraswamy
Commissioning Editor
Priyanka S
Technical Editor
Faisal Siddiqui
Copy Editors
Alisha Aranha
Kirti Pai
Project Coordinator
Sherin Padayatty
Proofreader
Linda Morris
Indexer
Tejal Soni
Graphics
Abhinash Sahu
Production Coordinator
Shantanu Zagade
Cover Work
Shantanu Zagade
About the Author
Hrushikesh Zadgaonkar is a Software Developer by profession. He is currently working at Persistent Systems Limited, Nagpur, in the Telecommunication Business Unit. He studied engineering and was a Microsoft Student Partner and IBM Campus Ambassador in his college. He has been actively working on distinct domains such as .NET, Android, and the Robotium Framework. He was appointed as a NetBeans Certified Associate by the Oracle Corporation. Hrushikesh is a semi-finalist for the Imagine Cup 2010, a global competition organized annually by Microsoft. His research paper was selected for presentation at the CSE-IT International Level Conference 2010, Thailand.
He has been actively participating in various technical events in different colleges in Nagpur. His leisure activities include portrait sketching, playing the tabla, guitar, and sports such as cricket, football, and snooker. He is fond of social networking and appreciates innovation. He is a quick learner. Hrushikesh is an uncompromising fan of Sachin Tendulkar and Manchester United Football Club. His music interests lie with Enrique Iglesias, Bryan Adams, and A.R. Rahman.
When he isn't coding, he likes to hang out with his family and friends. He finds time every day to workout at the gymnasium. He is popularly called "Mr. Z" among his colleagues. He currently lives in Nagpur, India with his parents.
You can mail him at <>
and he can be found tweeting at @MsWizKid
.
I wish to thank my Mother who have always guided and supported me throughout my life and made me capable!
About the Reviewers
Krzysztof Fona was born for programming. He started by trying to write a simple game on Commodore 64 at the age of 11. Between the ages of 13 and 16, he wrote a series of Ski Jump Manager games in Delphi (there were at least a 1,000 downloads). In December 2011, he graduated from Wroclaw University of Technology, having at that time 1.5 years of experience in commercial .NET development (in PGS Software). In January 2012, he started work at Bitbar, a company which makes mobile test automation tools that are used by the biggest companies in the world. His office is not only the place when he develops. Recently, he launched his first Android game (Air Hockey), hoping there will be more of his titles on Google Play. Other than development, he likes sports (he won a few medals for powerlifting at Poland's tournaments), movies, and computer games.
Other books he might work on are about Android, Java, and Jenkins.
I'd like to thank my wife for having patiently lived with a nerd.
Micha Szpruta is a Software Engineer at Bitbar. He works at a group of projects called Testdroid. Micha has got experience with Robotium because of developing the Eclipse plugin called Testdroid Recorder for recording user actions, and generating reusable test cases (written in Robotium). He is the co-author of the library, which extends Robotium-recorder extensions with the main class ExtSolo
, which can be found under: http://docs.testdroid.com/_pages/extsolo.html.
www.PacktPub.com
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why Subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print and bookmark content
- On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Preface
Automation testing on mobile devices has been around for a number of years, although it has really taken off with the advent of the Robotium Framework.
With the help of automating test cases, business components are extensively reused and help to execute complex test cases. Due to a number of different key features added to the Robotium Framework, it has been the world's leading Android test automation framework and most industry experts and professionals are using this framework for testing their Android business applications.
The main aim to bring this book into the market is to provide users with detailed knowledge of the Robotium Framework and its features. After reading it, you should be good to go and create the automated test cases and run them for your Android project!
Welcome to Robotium automated testing for Android!
What this book covers
, Getting Started with Robotium , discusses the Robotium Framework and helps us install and set up the Android environment on Windows in a step-by-step manner.