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

Practicing with the Raw Commands

For our first adventure, we need to understand the raw commands and what they do. Alas, Apple’s command-line dev tools often feel like a hostile environment. They change things all the time, and we need to write our shell scripts defensively. We’re going to look at the build process to create an app bundle in a known location, and then look at the automation process that launches Instruments, pointing it at the app bundle and the script we want to run.

To prepare, make sure the command-line tools are installed and ready on your machine. Pull up the Xcode preferences, switch to the Downloads tab, and click the Install button for the command-line tools if they’re not already installed; see the following figure. ...

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