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