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

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.