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

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 ...

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