Stress Testing

The power of Instruments really shines when you’re trying to stress-test. Multithreaded applications running under resource constraints are very complicated to debug. As we’ve discussed, memory warnings can trigger at any moment and the application needs to be ready to handle them. What if something was purged that the app needed? What if two simultaneous operations conflict or one completes later than expected?

Testing iOS applications isn’t just about testing behavior or hunting for specific performance issues. It also means stress-testing to expose race conditions or other strange bugs that surface under heavy load. Users may not walk through the same outrageous steps as your stress tests, but they may encounter some of the ...

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.