small medium large xlarge

Test iOS Apps with UI Automation: Bug Hunting Made Easy

March 27, 2013

Test Your Software, or Your Users Will. We said that back in The Pragmatic Programmer book and it still rings true today—even more so, with tons of users now testing your iOS app, and reviewing it accordingly! If you write iOS apps, you need Test iOS Apps with UI Automation: Bug Hunting Made Easy now in beta at

Oh, and be sure to follow @praprog on Twitter. Word is that our pesky renegade gerbil, Randy, is still at large, and he’s been known to post massive discount codes there. Keep an eye out.

Test iOS Apps with UI Automation: Bug Hunting Made Easy

Automated user interface testing is an important part of a comprehensive testing strategy for iOS applications. By scrutinizing your app through the eyes and actions of the user, you raise confidence that features are wired up right and behave as you expect.

Through this book you’ll learn how to do full-stack testing of your iOS apps in both the simulator and on the device with Apple’s built-in tools. You’ll write behavioral tests in UI Automation that help protect against regressions. You’ll write scripts to repeat steps in Instruments to reproduce performance bugs. With a little ingenuity, you’ll build a workflow that gives the feedback you need.

Grow a test suite by working with a real application that uses Core Data and network requests. Learn how to describe expected behavior in test scripts, launch the app in a specific state, and stub external dependencies for completely isolated and repeatable tests. Along the way, you’ll practice how to organize your test code and run it hands-free from the command line. By the end, you’ll have the tools and habits you need to tackle the unique testing problems you’ll face while building best-of-breed native iOS apps for your users.

Now in beta from

Don’t Get Left Out

Are your friends jealous that you get these spiffy email newsletters and they don’t? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

Are you following us on Twitter and/or Facebook? Here’s where you can find us and keep up with the latest news and commentary, and occasional discounts.

Coming Soon:

  • Rapid Android Development: Build Rich, Sensor-Based Applications with Processing in print
  • Programming Erlang (2nd ed) in beta
  • Ultimate Android in beta
  • Crafting Rails Applications (2nd ed) in beta

Recently Released:

  • Modern C++ Programming with Test-Driven Development [in beta]
  • Functional Programming Patterns in Scala and Clojure [in beta]
  • Functional Programming in Java [in beta]
  • Practical Programming 2nd Ed. [in beta]
  • Thanks for your continued support,

    Dave & Andy

    Books • eBooks • Screencasts • PragPub Magazine