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

Grouping Test Steps and Their Output

Our test suite is three behavioral tests strong, and we now have a lot of output to wade through in the trace log. The figure here shows what a successful run through the whole suite generates.

images/BuildingTestSuite/loglinemess.png
Figure 18. A mess of log lines

It’s difficult to know where one test ends and the other begins. It’s not impossible to read, but we don’t have to settle for this; UI Automation provides even more options for logging. We’re going to cover log groups and organize the suite output to make it easier to see the behavior boundaries.

UIALogger provides methods that act like markers to roll up log messages into a single collapsed ...

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