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

Chapter 5Maps, Gestures, and Alerts

NearbyMe makes heavy use of Apple’s Map Kit framework to provide the map view that the user manipulates, and we should assume it works as described. However, we don’t want to distract ourselves by testing the implementation of Map Kit; we want to test how we interact with it in our code.

We’re going to write two more tests for our test suite, covering the most common uses. First, we want to make sure that tapping a search term will execute a geographical query and actually show pins representing points of interest on the map. Second, we want to test what users see if they move and refresh the map but there are no results. The pins should be removed and users should see an alert letting them know that there’s ...

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