altf

UIAutomation on iPad

Posted in Apple, mobile, QA by AltF on November 17, 2010

UIAutomation is only available in iOS 4.0+ SDK – so to run UIAutomation on the iPad make sure your application is compiled to run on 4.x simulator/device. You will need to download the latest version of the SDK to get the 4.x version of the iPad Simulator (also you can upgrade your device firmware to 4.x to run on the device). Download the latest version of the SDK from Apple Dev Center.

Refer to my previous post “Automating iOS User Interface Testing with UIAutomation” for getting started with UIAutomation.

For those of you who are still getting the error like “Automation is not available for this version of the iPhone Simulator.” when trying to run UIAutomation on iPad Simulator – please check the following things:

1. Ensure that you build your application for the correct version of iOS SDK. Select iOS 4.x as Base SDK in the project info before building.

2. Also ensure that the Instruments is running the application on the correct version of iPad Simulator. Select your application in the “Choose Target” and select the correct version of iPad Simulator under “Launch Options” (by default it’s selected to iPad Simulator 3.2, change that to iPad – Simulator – iOS 4.x)

Once you have selected iOS 4.x in Instruments – you should be able to run your UIAutomation scripts on the iPad Simulator.

3 Responses

Subscribe to comments with RSS.

  1. Hash05 said, on November 18, 2010 at 4:05 pm

    Hey AltF…thanks so much for the post. I was trying to get the Automation done on a 3.2 Simulator and it was throwing me an error….finally, with your screenshots, was able to understand this UIAutomation works only on 4x. Keep posting the updates…these are very useful.

  2. […] Apple, ios, ipad, iphone, QA, testing, ui, uiautomation « Working with Watir on a mac UIAutomation on iPad » LikeOne blogger likes this […]

  3. […] covered how to write UIAutomation tests in my previous posts (here and here) and also how to distribute stable build over the air (here). You can run your tests from command […]


Leave a comment