Under the Bridge

UI Automation

Here is a great walkthrough of how to get started with UI Automation that new UI scripting test goodness you may have noticed in the latest SDK, in between trying to get all your previous projects up to speed, if you’re anything like us:

In this post we’re going to look at the UI Automation library/tool that Apple added to iOS SDK 4.0. This is a huge step forward for test automation on the iOS platform. While it’s not without some compromises, it’s worth looking at to see if you can reduce the time you spend on manual testing.

UI Automation is both a probe for Instruments as well as a JavaScript library provided by Apple to exercise and validate a running application. In this case, “running application” isn’t restricted to the simulator—you can also automate the application on a real device. To my knowledge, this is the first time I’ve heard of anyone being able to do this.

This is huge. Having the ability to automate workflows in your application yields two benefits: you cut down on manual testing which saves you time, and you can rely less on your memory to execute all your tests. Instead, you just push a button (okay, two or three buttons) and run your full regression suite. Have I piqued your interest yet?

Excellent stuff!

UPDATE:

And check out the post-mortem post, More UIAutomation!

4
  • http://www.returndev.com Dzamir
  • http://www.alexcurylo.com Alex

    Whooops! Thanks, Dzamir, fixed that.

  • kanak

    Alex,can you also give some sample test examples for google map using ui automation iphone app.
    As I need to test maps ,n route location on map…is it possible to automate the maps.

    Thanks,
    kanak

  • hari

    I heard about the ui automation tool but i didn’t that tool can any body post the link of that tool.