Recipe 28Test on iOS Using Frank

Problem

You want to test an iPhone or iPad app easily from Cucumber.

Ingredients

  • Frank,[180] an adapter that connects your iOS app to Cucumber

Solution

There are several GUI automation libraries for iPhone and iPad apps, each with its trade-offs. Some are ready to use right away, with no modification to your application code—but they work only with the iOS simulator. Others can test real devices but require you to create a special debug build of your app and add some automation hooks to it.

The approaches are not mutually exclusive. You can start with a simpler library and then move to a more flexible one later. For this recipe, we’ll use Frank, a library that automatically creates a testing build of your ...

Get Cucumber Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.