Chapter 6Strategies for Testing Universal Apps

NearbyMe is a hit with the customers. There’s enough demand for an iPad version that we’ve decided to make it universal and run on both iPhone and iPad. Choosing to build a universal application presents a unique challenge—we now have to support two different user-interface idioms in one codebase.

Similarly, we have tough choices to make in our test code. Some of the scripts we’ve written are common enough to use for both device types without any modification. Inevitably, some will have to be changed to adapt. How do we know what to change? That depends on how much the two interface idioms share in common for any given application.

To answer that question, we’ll examine the specific changes ...

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.