O'Reilly logo

Test iOS Apps with UI Automation by Jonathan Penn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Seeding Data Dynamically with a Factory

Now that we know the sorting behavior works correctly, we want to double-check the app’s performance when sorting a large number of search terms. Changing the sort order triggers row animations to show the cells shuffling around, and it’s possible that a large number of cells could gum up the works. The question is, how do we get a thousand search terms in our table view?

Yes, we could manually enter the terms ourselves and save an application data package. Instead we’ll dynamically generate the data. This sets up possibilities for more complex scenarios that would be cumbersome to manage as a set of data packages.

We’re going to build a data factory in our Objective-C code and tell it to populate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required