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

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.