Tagged Questions

0
votes
1answer
5 views

Identifying a cell in UIAutomation with name

I am trying how to identify a cell in a table view, using name using UIAutomation framework. This is a screenshot from editor view of instruments. I tried the following approaches but didn't ...
0
votes
0answers
8 views

Can I import data from excel sheet into instruments UIAutomation?

I want to write script for a screen where there are two fields and I just want to test with different possibilities of values for those fields, whether it will navigate to further screen. But ...
0
votes
1answer
27 views

Accessing label text using accessibility identifiers

I have added an accessibility identifier to a label so that I can use it in my UIAutomation javascript files. How do I access the text on the label using accessibility identifier? Suppose "aLabel" is ...
0
votes
1answer
43 views

how to convert string into integer in uiautomation?

I am extracting a value from a text field (using .value()) and then I want to add a number to it so that I can check another value with result of above combination. At present, when I am adding number ...
2
votes
1answer
45 views

Automation issue on tabbar in iphone

I am using the automation on instruments tools check my application using the java script when i app have two tabbars when i click the second tab via javascript following code var target = ...
1
vote
1answer
79 views

Does iOS automation JavaScript support the substring function?

Just wanted to know: does iOS UI Automation JavaScript support the substring method? If yes, please provide a suitable example because I'm getting an error response for the same.
1
vote
1answer
136 views

UIAutomation problems accessing TableView

Now I'm having the same kind of problem as he UIAutomation, UITableView inside UITableViewCell, but I can't solve it as he did. I have the similar screen as his with four cells but their names are ...
2
votes
1answer
120 views

How do I enable Javascript syntax check in Apple Instruments

We are using Apple Instruments to automate some of the Test Flows on iPhone devices. For a a MAC OS X Lion machine, Instruments does not show any JavaScript syntax errors, however it does on MAC OS X ...
0
votes
2answers
322 views

Swiping through multiple pages in ios UI Automation

working in the ios UI Automation instrument and I am currently stuck. My problem is I am trying to automate a horizontal swipe between pages in javascript and I can't seem to get it to work. I have ...
1
vote
1answer
367 views

UIAutomation, UITableView inside UITableViewCell

I have a horribly coded set of controllers which I am unable to refactor at this time. I need to bring them under automated testing, but have run into an issue with the UIAutomation tool. These ...
1
vote
1answer
570 views

iPhone - UI Automation - Type with UIAKeyboard

I use UIAutomation to test my iPhone app. My app has a UISearchBar, after I made it focused, this line of script shows that the app now has 2 UIAWindow. ...
0
votes
1answer
207 views

When using UIAutomation Instruments for iOS is there a way to keep my app open between tests?

So far I've successfully run iOS automation from the Instruments GUI and also using instruments on the command line. I haven't found any options that would allow me to manually open or close my app ...
1
vote
2answers
165 views

Is it possible to extend UIAElementArray with my own methods?

I do the following: function extend(destination, source) { for (var property in source) { destination[property] = source[property]; } return destination; }; extend( ...
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: ...
2
votes
2answers
241 views

Have CoffeeScript output a line as raw javascript?

Is there a way to tell CoffeeScript to just ignore a certain line and output it as is? I want this line to be included in the resulting javascript #import './blah/blah' But CoffeeScript is ...
1
vote
0answers
189 views

iOS automation script - simulator does not seem to do something

I use a script to simulate user interaction into my app, but I have a problem here. The simulator does not seem to do something. I don't work before with automation scripts but in some videos on ...
0
votes
1answer
230 views

Is that possible to run iphone UIAutomation script using ad-hoc distribution build

Previously i was using Developer build which support to run my UIAuotmation scripts , but recently i tried the build with ad-hoc distribution provisioning file its not compatible to run my ...
3
votes
3answers
1k 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 ...
0
votes
1answer
300 views

Can't grab my scrollView from javascript using UIAutomation

I can't seem to create a reference to my scrollView. I'm trying to test the login page of an iOS application. The xib has a UIView that holds a UIScrollView. I'm trying to grab the scrollView using ...
4
votes
1answer
1k views

How does #import work in iOS' UI Automation?

I'm making a small test framework that uses the JavaScript module pattern for UI Automation testing on iOS. However, I seem to be getting odd results based on #import and extending modules. I have ...
1
vote
1answer
366 views

iOS UIAutomation UIAElement.isVisible() throwing stale response?

I'm trying to use isVisible() within a loop to create a waitForElement type of a function for my iOS UIAutomation. When I try to use the following code, it fails while waiting for an element when a ...
0
votes
1answer
277 views

Can i use scroll and click action scripts inside alert function?

i am having a Alert function as below : UIATarget.onAlert = function onAlert(alert) { var title = alert.name(); UIALogger.logWarning("Alert with title '" + title + "' encountered!"); if (title == ...
1
vote
1answer
335 views

Instruments:UI Automation:iPhone app - how to tap “null” button using parameters of NSRect?

please help me. There is a button: 4) UIAButton [name:(null) value:(null) NSRect: {{25, 254}, {70, 72}}] I can tap it : target.tap(x,y) or window.buttons()[index].tap(); But, is it possible to tap ...
3
votes
1answer
879 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 ...
1
vote
0answers
80 views

Is there a way to do automation of voice verification in iOS device using JavaScript

I have an app that throws out some pre-recorded voice messages on performing some tasks. For simplicity, consider I have button and on clicking it, it says "You clicked a button". My question is can ...
6
votes
5answers
998 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 ...
0
votes
1answer
3k views

(iOS) UI Automation AlertPrompt button/textField accessiblity

I'm having a bit of trouble with UI Automation (the built in to iOS tool) when it comes to alertView. First off, I'm not sure where I can set the accessibilityLabel and such for the buttons that are ...
0
votes
2answers
162 views

How to select (-) icons while editing a tabel, in Iphone UIAutomation

Hi i am learning UI-Automation on I phone, can any one tell me what reference should be used to select (-) or (+) buttons while editing a table.
5
votes
2answers
914 views

UIAutomation iPhone: Is it possible to segment the script into several files

I want to write UIAutomation (JavaScript based) tests for a rather complex iPhone App. I dont't want to use one single huge file, but to seperate the testing functions and helpers by using several ...
0
votes
3answers
2k views

UI Automation:iPhone app - how to tap “OK” button when an alert appears

1) UIATarget [name:(null)value:(null) NSRect: {{2.7520829e-39,2.0667855e-36},{0, 1.4012985e-45}}] 2) UIAApplication [name:tosh.0 value:(null) NSRect:{{0, 20}, {320, 460}}] 3) UIAWindow ...
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 ...
0
votes
0answers
378 views

Parse error when running script in Automation Instrument Ipad

I am trying to use Automation Instrument on Ipad. But I keep getting the following error for my javascript: Exception raised while running script: SyntaxError: Parse error It would be really helpful ...
0
votes
1answer
515 views

Reading preferences set by UIAutomation's UIAApplication.setPreferencesValueForKey() on the target device?

Over the last few days I've been playing with Apple's UIAutomation framework in an attempt to try to put together a suite of acceptance tests to drive the development of an app I'm working on (in a ...
0
votes
1answer
551 views

In Mac, How to use a javascript to read data from Excel sheet or Notepad?

I am using UI Automation tool provided by Mac with Instruments. I write javascript to write test cases. Is there anyway to read and write data into an excelsheet or txt file using javascript through ...
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 ...
1
vote
1answer
1k views

iPhone UIAutomation button tap does not fire

I am trying to use UIAutomation in Instruments with the iPhone Simulator and the latest iOS SDK 4.1. Here is the snippet of javascript that is having a problem: // there are sufficient delays here ...