Automated UI Testing using the Automation instrument included with Instruments for iOS development.
191
votes
8answers
24k 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 ...
23
votes
7answers
10k 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 ...
13
votes
1answer
610 views
Verify text color in iphone uiautomation
I am testing an app with ios uiautomation and I need to verify the color of some static text controls. Is this possible? I didn't see any methods or properties that allow access to text styling.
12
votes
1answer
5k views
Best Resources for UIAutomation Testing for iOS Applications
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, ...
12
votes
4answers
2k 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 ...
12
votes
0answers
637 views
Instruments automation trace only allows one target connection?
I've created a simple javascript for my iOS app that I'd like to run simultaneously on multiple iOSDevices connected via USB to one host Mac machine. Launching instruments connected to an iPhone from ...
10
votes
4answers
811 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 ...
10
votes
3answers
1k views
postbuild UIAutomation script not running in jenkins
I am trying to do End-to-End automation for an iOS project. My aim is to automate the continuous integration process with attaching UIAutomation scripts as post build action.
So from the time when a ...
9
votes
6answers
588 views
When testing an iPhone application, is it enough to just use the Leaks instrument?
I am about to finish my first iPhone application, and I'm am wondering if there are a set of steps that are used to check the app for memory leaks, performance, etc.?
Is checking with the Leaks ...
8
votes
1answer
580 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 ...
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 ...
7
votes
3answers
1k views
How can I turn the output of my iOS UIAutomation tests into JUnit style output for Jenkins?
I am using UIAutomation scripts to test my iOS application. I've managed to get the scripts running from the command line but now I need to convert the output (pass/fails) in a format that Jenkins can ...
7
votes
1answer
400 views
UIAutomation with code coverage
I am currently automating our iOS testing on jenkins. So far I had no problems with running unit tests, converting OCUnit into JUnit and generating code coverage in Cobertura format (lots of googling ...
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 ...
6
votes
1answer
885 views
UIAutomation Nested Accessibilty Elements Disappear from Hierarchy
I have a view with two subviews a button and an Image, I turn on accessibility and set the label on the subviews and I can see the hierarchy by calling
...