Chapter 8Setting Up Application Data

All along we’ve had to manually make sure NearbyMe starts in the right state for our tests. If we removed a search term, we had to make sure to put it back. This is, unfortunately, fragile. Instead, we want a way to tell our app to launch with a consistent set of data for our tests.

But more than that, we need customized sets of data for different kinds of tests. NearbyMe uses table-view animations to shuffle the search terms around when you switch the sorting order from alphabetical to recently used. We’ve never even checked to see how well it performs with a large number of table cells. These problems require prefabricated application data, and that’s what we’re going to cover next.

We’ll begin by ...

Get Test iOS Apps with UI Automation 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.