Chapter 3Building a Test Suite

We’ve learned the basics of UI Automation and written our first test. We’re ready to keep going and test more behaviors of our app, but where do we put these new tests? We could keep appending snippets to form one long embedded test script, but this will get complicated quickly. It’s time to think about new ways to structure our tests. We’re going to start building up a test suite composed of self-contained scripts.

There are three goals to keep in mind. First, we want a way to separate and organize our scripts into text files that make managing and editing them easier. Second, we want a single master script that runs all our individual test scripts at once. And third, we need a way to organize the output of ...

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.