Best Resources for UIAutomation Testing for iOS Applications

dtuckernet picture dtuckernet · Sep 5, 2011 · Viewed 9.9k times · Source

Testing with UIAutomation on Instruments is great, however, the documentation and resources around it are either non-existent or in hiding. What are the best resources (documentation, blog posts, Stack Overflow questions) that have helped you in implementing this on your projects? Are there any good open source testing scripts in the wild?

Answer

Brad Larson picture Brad Larson · Sep 5, 2011

As I point out in my answer to this similar question, I covered UI Automation as part of my recent course on advanced iPhone development. The video for the "Testing" session that covers this instrument can be found for free on iTunes U, and the course notes on UI Automation, along with sample scripts, are available here.

If you have access to the WWDC 2010 videos, make sure to watch session 306 - "Automating User Interface Testing with Instruments". That was my first introduction to the topic, and they do a great job of running through the core concepts.

In addition, James Turner's "How to use UIAutomation to create iPhone UI tests" and Alex Vollmer's "Working with UIAutomation" are both write-ups that I've found useful.

Finally, the tag here on Stack Overflow contains many useful scripts and specific examples of UI Automation in action.