Skip to Main Content
Cucumber Recipes
book

Cucumber Recipes

by Ian Dees, Matt Wynne, Aslak Hellesoy
February 2013
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 45m
English
Pragmatic Bookshelf
Content preview from Cucumber Recipes
Recipe 29Test Android Apps with Calabash

Problem

You want to test an Android application using Cucumber.

Ingredients

  • Calabash,[185] an open source library for testing mobile apps

  • The Android SDK[186] for building and running the example application

  • Eclipse[187] for sketching the user interface

Solution

Calabash is a library that connects Cucumber to Android or iOS apps. The Android flavor works by embedding a TCP server into your application and then controlling it remotely from your computer using the Robotium GUI automation tool.[188]

In this recipe, we’ll write a simple bookmarking application and test it with Calabash. You can perform the tasks either in Eclipse or on the command line; we’ll show Eclipse here.

Setup

To build and run the example ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cucumber Cookbook

Cucumber Cookbook

Shankar Garg
Basiswissen Softwaretest , 6th Edition

Basiswissen Softwaretest , 6th Edition

Andreas Spillner, Tilo Linz
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781941222607Errata