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

Describing the App with Screen Objects

Let’s think through what we have so far. UI Automation provides a scripting interface to the application through a set of objects representing the window, controls, and device. We act on these objects with events, check the results on the screen, and log errors if they aren’t what we expect.

Our test steps can become very verbose. The test’s meaning gets clouded by complicated lookups and assertions. We need a way to hide the unnecessary stuff.

Because we are dealing with mobile user interfaces, we can break our problem up into “screens” that represent the different cognitive states of the user. In our vernacular, a screen may encompass the whole physical screen, or it could represent a modal view or ...

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