Capturing Steps to Reproduce a Memory Leak

We’re going to try to track down the memory leak and capture our steps with UI Automation. We want to end up with a script that we can run repeatedly while we dig into the Objective-C code to figure out where the leak might be.

We first learned about capturing automation steps back in Chapter 1, UI Automation Overview. The capturing mechanism doesn’t always record everything we do, but it does get us most of the way there. This helps quickly build one-off scripts while you’re trying to re-create a complex problem.

Select the UI Automation instrument in the window’s track view, click the Add button in the Scripts section of the left sidebar, and choose Create to start a new blank script in the ...

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.