Tagged Questions

1
vote
1answer
57 views

Automated Testing and Xcode Configuration File to specify API Target

So I am writing Automated tests that run from the command line to test the UI of my iOS application. I have the bash script working that cleans and builds the project and runs my UI Automated tests. ...
0
votes
1answer
104 views

iOS UI Automation for different languages

my iOS application has localization for 10+ languages. I'd like to check that all screens looks ok (labels aren't too long/short etc). I know I can go through my app and make screenshots using UI ...
0
votes
0answers
236 views

Running UIAutomation scripts on multiple iOS devices via Instruments command line

Are there any way to run UIAutomation scripts in multiple connected iOS devices? Currently I use instruments with -w switch along with UDID of each device? I appreciate your ideas.
0
votes
1answer
73 views

Access modal view controller with ios UI Automation

Is there a way to access the elements of an modal view controller with UI Automation. I can't find the view or any elements when printing the tree of the local target. Only the view "behind" is shown ...
2
votes
3answers
518 views

Instruments 4.5 and ios simulator 6.0. not started

In IOS Simulator 5.1 this code worked: `instruments -t ...
1
vote
2answers
257 views

How to run UIAutomation using Jenkins?

I'm trying to combine Instruments UIAutomation with the CI by Jenkins. In the Jenkins project's configurations I defined a call a script: sh buildAndTest.sh That all it does is to call the uitest ...
0
votes
1answer
322 views

Automation testing with instruments on device

I am trying to follow this post to run UIAutomation scripts on iOS devices from command line, but i can't make it work. This is the command i am currently using : instruments -t ...
1
vote
1answer
81 views

Why are UIAElement's children not equal to themselves?

I noticed some weird behavior in a UIAutomation script I had written a while back that I hadn't ran in a while. My assertions were failing; after doing some digging, I saw that when iterating a ...
0
votes
1answer
129 views

Accessing UIASCRIPT variable in UIAutomation test for iPhone

Is there any way of accessing command line arguments of instruments in javascript test code? I am starting a UI test using the following command: instruments -t ...
4
votes
1answer
368 views

Unable to get UIAutomation iOS UILabel value

I am trying to get the value "HELLO" of the UILabel shown in the iPad simulator. I have enabled accessibility and have set the label as "Label Access". But when I call target.logElementTree(), both ...
6
votes
3answers
2k views

Running iOS UIAutomation tests from Jenkins

For a while now I've been trying to work out how to run UIAutomation tests from Jenkins - every time I run the build, it builds fine, then it runs my instruments command (using the same command as ...
4
votes
0answers
469 views

iOS UIAutomation Simulator 5.0: The target application appears to have died

I'm to use the record feature in UIAutomation that only works on Simulator 5.0. when using UIAutomation on Simulator 4.3, it runs perfect. when running my app from xcode on Simulator 5.0 it runs ...
0
votes
0answers
143 views

Different Log Level types in XCode-Instruments

I opened the .plist file that is created by iOS-instruments. Does any one know the different types of <key>Type</key> in the pList file <dict> ...
0
votes
1answer
197 views

.trace file xcode instruments

I am unable to open the .trace file which is the output of a test script run in Xcode-instruments. When I try to open it, it says Unable to open the file. Please suggest if there is a way to open it
3
votes
1answer
387 views

iOS Automation Tests: buttons' Label not recognized by Instruments

I'm currently working on an automation script (JavaScript) for an iOS app. I'm not a programmer, just a tester who wants to seek bugs. Software concerned: Xcode, Instruments. Here is the problem: ...
1
vote
1answer
279 views

Debugging UIAutomation scripts in Instruments

I have recently tried using UIAutomation framework for some simple automated UI tests for iOS devices. While interesting and relatively powerful, I find it quite tedious to write the scripts without ...
2
votes
2answers
330 views

What is UIATargetHasGoneAWOLException while operating iphone with UIAutomation through Instruments.

I am using UIAutomation, through Instruments from Xcode, to do something on iPhone, and got a weird exception: UIATargetHasGoneAWOLException. Anybody know what does this exception mean?
0
votes
1answer
116 views

Emulate drawing in UIAutomation

I have an application that allows the user to write into an area using a drawing function and then save the image. Is there a way to emulate this with UIAutomation?
4
votes
1answer
421 views

UIAutomation Scripts examples

Does anyone found any examples on UIAutomation test scripts with sample projects? So far I found only WWDC2010 video covering the topic, but no sample scripts/projects to play around with. Also is ...
1
vote
1answer
208 views

UIAutomation for iPhone

Does UIAutomation work for testing on the iPhone devices and can I do it without the xCode for the project? Is there another tool that can test without the xCode?
0
votes
1answer
308 views

Can I see the code for the script applied when recording UI interaction in Instruments?

Is there a way to see the code for the script that Instruments uses when you record UI interactions? Can I view this code in a way similar to the scripting used for UI Automation?
1
vote
1answer
1k views

Capturing iPhone console log when running Instrument's UI Automation

In Xcode, I can run my application with the console open by using "Run->Console" and then executing a "Build and Run" command. Now I've written a UI Automation script that I would like to run while ...
0
votes
3answers
1k views

Why is the UI Automation instrument unable to determine if a button is enabled here?

I am working with Xcode 4.0.1 and Instruments trying to implement some UIAutomation tests. As of right now, I am trying to determine if a button on my MainWindow (mainWindow = app.mainWindow();) is ...
1
vote
1answer
1k views

A question about verifying the existence of a button object on a view using JavaScript in conjunction with Xcode UIAutomation and Instruments

For the quality testing of our project on iOS 4.2, we are working with UIAutomation though Instruments in Xcode 3.x. We are writing our scripts in Javascript. I am new to Javascript, and have found ...
3
votes
1answer
990 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 ...
17
votes
6answers
8k 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 ...
2
votes
3answers
2k views

Why can't I access the Back button in my iPhone application using a UI Automation script?

I have a simple function that should check if the view is at the home interface, and if not, bring it to the home: function returnHome() { if ...
0
votes
3answers
1k views

How do you handle a UIPickerView in UI Automation iPhone application testing?

In the following UI Automation script code, I'm able to get the values from a UIPickerView, but I'm not able to select the picker: var picker = window.pickers(); UIALogger.logMessage("picker array ...
10
votes
4answers
742 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 ...