Robotium Automated Testing for Android

Create and execute automated test cases for your Android apps using this hands-on guide to Robotium. A comprehensive guide to the framework, it takes you from first principles to advanced features and utilities.
Preview in Mapt

Robotium Automated Testing for Android

Hrushikesh Zadgaonkar

Create and execute automated test cases for your Android apps using this hands-on guide to Robotium. A comprehensive guide to the framework, it takes you from first principles to advanced features and utilities.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
Print + eBook
$24.99
RRP $24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$24.99
$29.99p/m after trial
RRP $14.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Robotium Automated Testing for Android Book Cover
Robotium Automated Testing for Android
$ 14.99
$ 10.50
Automated UI Testing in Android [Video] Book Cover
Automated UI Testing in Android [Video]
$ 124.99
$ 106.25
Buy 2 for $28.00
Save $111.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781782168010
Paperback94 pages

Book Description

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 complex test cases are executed. Due to a number of different key features added to the Robotium Framework, it has become the world’s leading Android test automation framework and most of the industry experts and professionals are using this framework for testing their Android business applications.

This practical guide will help you to create and execute automated test cases. You will also learn how to take advantage of the real power behind the Robotium Framework and all of its features, while being provided with a good grounding in how to use it in your Android test project.

Starting with learning how to set up an Android environment for using Robotium, this book will then look at the various features of the Robotium framework, and take you through numerous examples that will help you to take advantage of the new features in Robotium, quickly and painlessly.

This book will guide you through setting up the Android environment that is necessary to create a test project. You will also learn the benefits of using Robotium over other test frameworks, as well as solutions to the most common issues faced by users in this domain.

Table of Contents

Chapter 1: Getting Started with Robotium
Robotium framework
Features and benefits
Setting up an Android environment
Summary
Chapter 2: Creating a Test Project Using Robotium
Creating the AUT
Creating a test project
Creating a test case
Adding the Robotium library
Adding the package name in AndroidManifest.xml
Robotium's test case code
Running the test case
Summary
Chapter 3: Robotium APIs
Solo
API calls
Resource ID in Robotium
Understanding internationalization
Summary
Chapter 4: Web Support in Robotium
API set
Hybrid test example
Summary
Chapter 5: Comparison with Other Frameworks
MonkeyRunner
Robolectric
UI Automator
Calabash
Summary
Chapter 6: Remote Control in Robotium
Software Automation Framework Support
Working of a Remote Control for Android
Robotium Remote Control using SAFS
Summary
Chapter 7: Other Robotium Utilities
The RobotiumUtils class
XPath API and syntax
Robotium for pre-installed applications
Summary
Chapter 8: Robotium with Maven
Automate Android app built with Maven
Build Android tests using Maven
Summary

What You Will Learn

  • Get to grips with the Robotium Framework
  • Create a test project using Robotium
  • Get acquainted with Robotium API calls and their usage
  • Access web views in Android via Web Support in Robotium
  • Compare Robotium with other testing frameworks
  • Utilize the remote control feature in Robotium
  • Implement different Robotium utilities
  • Use Robotium with Maven

Authors

Table of Contents

Chapter 1: Getting Started with Robotium
Robotium framework
Features and benefits
Setting up an Android environment
Summary
Chapter 2: Creating a Test Project Using Robotium
Creating the AUT
Creating a test project
Creating a test case
Adding the Robotium library
Adding the package name in AndroidManifest.xml
Robotium's test case code
Running the test case
Summary
Chapter 3: Robotium APIs
Solo
API calls
Resource ID in Robotium
Understanding internationalization
Summary
Chapter 4: Web Support in Robotium
API set
Hybrid test example
Summary
Chapter 5: Comparison with Other Frameworks
MonkeyRunner
Robolectric
UI Automator
Calabash
Summary
Chapter 6: Remote Control in Robotium
Software Automation Framework Support
Working of a Remote Control for Android
Robotium Remote Control using SAFS
Summary
Chapter 7: Other Robotium Utilities
The RobotiumUtils class
XPath API and syntax
Robotium for pre-installed applications
Summary
Chapter 8: Robotium with Maven
Automate Android app built with Maven
Build Android tests using Maven
Summary

Book Details

ISBN 139781782168010
Paperback94 pages
Read More

Read More Reviews

Recommended for You

Android Application Testing Guide Book Cover
Android Application Testing Guide
$ 26.99
$ 18.90
Selenium WebDriver Practical Guide Book Cover
Selenium WebDriver Practical Guide
$ 26.99
$ 18.90
Selenium Testing Tools Cookbook Book Cover
Selenium Testing Tools Cookbook
$ 26.99
$ 18.90
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Performance Testing with JMeter 2.9 Book Cover
Performance Testing with JMeter 2.9
$ 23.99
$ 16.80
Selenium Design Patterns and Best Practices Book Cover
Selenium Design Patterns and Best Practices
$ 19.99
$ 14.00