Chapter 10Command-Line Workflow

The Xcode IDE and Instruments GUI integrate well together and provide a quick feedback loop while iterating on UI Automation test code. But we still have a lot of manual steps involved. We must fire up an Automation template, import script files, run them, and check the results before importing the next one. This is fine during development, but we need something more automatic that can run all our scripts at once with a single command.

This is a great reason to explore a command-line workflow with UI Automation. Using shell scripts we’ll write ourselves, we’ll execute the automation scripts we’ve been writing throughout this book, one after the other. Ideally, we want a script that will build and run NearbyMe ...

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.