Automated UI Testing using the Automation instrument included with Instruments for iOS development.

learn more… | top users | synonyms

208
votes
8answers
25k views

iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing

What are the best technologies to use for behavior-driven development on the iPhone? And what are some open source example projects that demonstrate sound use of these technologies? Here are some ...
26
votes
7answers
11k views

Can the UI Automation instrument be run from the command line?

Is there a way to open the UIAutomation instrument through the terminal? Will it be possible to write an AppleScript to open Apple's UIAutomation tool and load the application to be tested? Can you ...
12
votes
4answers
3k views

Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to ...
7
votes
2answers
1k views

Why am I seeing “An error occurred while trying to run the script.” in the UI Automation instrument?

When I try to run a UI Automation script on iOS 5 devices I am getting the following error: "An error occurred while trying to run the script." The same script is running perfectly in the ...
1
vote
2answers
2k views

Can we use UI Automation tools with the iPhone Simulator?

I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every ...
0
votes
2answers
401 views

Instruments Automation Tool: Script Ended Without Explicitly Closing This Test

I was playing around with the Automation tool in Instruments today but have had problems writing a working test. The following example will exit with Issue: Script ended without explicting closing ...
6
votes
1answer
6k views

How about UI automation testing for iOS app with instruments & Javascripts

Get knowing the automation UI testing for iOS apps from WWDC2010 video session, but no practices for it. From codeproject project,we can have one example. Questions here to hear from people who ...
10
votes
4answers
848 views

Unit Testing is Wonderful, But

I took the time to set up some Unit Tests and set up the targets in XCode, etc., and they're pretty useful for a few classes. However: I want to test small UI pieces for which I don't want to launch ...
8
votes
1answer
677 views

Launch a specific Hardware version of iOS simulator using instruments command line utility

I am using UIAutomation provided by Apple -> Xcode -> instruments. I have my Javascripts and the whole automation using instruments command line infrastructure running up. I got an additional task of ...
4
votes
1answer
1k views

How to check element properties in iOS gui automation?

All UI Automation examples I've seen uses standard components whose state can be inspected with the JavaScript API using the value() method. This is a bit limiting. Lets say you want to check the ...
5
votes
4answers
2k views

Instruments always launches iPad Simulator for Universal Apps with Automation, how can I force it to use the iPhone Simulator?

I've created a universal binary using iOS 4.2 and Xcode 3.2.5. I'm trying to do some automation testing on the application and since the interfaces are slightly different between the iPad and iPhone ...
3
votes
1answer
2k views

How can I simulate a swipe gesture programmatically?

I'm currently trying to write some acceptance tests for our new iOS application using frank (and in turn UISpec). Whilst the framework supports touches as a basic way to interact with views, it ...
6
votes
5answers
1k views

Issuing a synchronous HTTP GET request or invoking shell script in JavaScript from iOS UIAutomation

I am trying to use Apple's UIAutomation to write unit tests for an iOS Application that has a server-side component. In order to setup the test server in various states (as well as simulate two ...
4
votes
3answers
2k views

Can't get value of UIAStaticText?

I'm trying to access the value() of a UIAStaticText (a UILabel in the objective C code) JavaScript object. I can set the value just fine using setValue() and I can confirm that the simulator updates ...
4
votes
1answer
1k views

How to get UIAutomation, Simulator, and Xcode Debugger Running at the same time?

Can anyone point me to the documentation on how to make Instruments run UIAutomation scripts and start the iPhone application with the debugger running in the Simulator? Constraints: I only have ...

1 2
15 30 50 per page