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

Exploring the Map

We’ve already tested the list table view of results in Chapter 4, Organizing Test Code, so we know that we’re talking to the OpenStreetMap API correctly. We now need to make sure we’re plotting the pins visibly on the map. We haven’t interacted with the map yet; let’s start by exploring how UI Automation represents it to us.

Start up the application in Instruments with the UI Automation template and switch to the script editor. Set up a script named sandbox.js in the automation directory. We’ll use this as a place to play with these ideas before we clean them up and promote them to the test_suite.js file where our official tests live. In sandbox.js, turn on strict mode and import our test environment so we have our tools ...

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