Chapter 7Automating Performance Tests

We’ve got a problem. Several users complained that NearbyMe crashes after being used for a while. We’re able to reproduce the bug if we try searching for results nearby over and over again. It turns out that the watchdog process is killing our app because the memory usage keeps going up.

Performance testing isn’t just a good idea—it’s critical for useful and successful iOS apps. We need to guard our memory usage, launch time, and responsiveness. Otherwise, the watchdog process may decide that our app needs to be sacrificed for the good of the device and the user will give up altogether in frustration.

The problem is that performance testing can be boring. Searching for issues takes time. Once we discover ...

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.