Chapter 1UI Automation Overview

Every time we add new features to our apps and fire up the simulator to make sure we didn’t break anything, we’re testing. Every time we tap on the same button over and over to see if we have a memory leak, we’re testing. Testing software involves a lot of repetitive work, and repetitive work is excellent work for a computer to do.

Instead of manually tapping and swiping while looking for problems, we can build scripts that do these things for us. Automating our testing process is a long journey with a lot of opportunities and challenges, so we’ll break it down into manageable chunks.

In this chapter, we’ll start the journey by using Apple’s built-in UI Automation tool to capture and play back a very simple ...

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.