Questions tagged [ios-ui-automation]

Automated UI Testing using the Automation instrument included with Instruments for iOS development. Not to be confused with [xcode-ui-testing] which was introduced in Xcode 7.

Instruments is an application shipped with Xcode and used to help profile applications in both iOS and OS X development. One of the tools included with Instruments is the UIAutomation instrument which allows for automated testing of user interfaces using scripts written in JavaScript. This functionality was introduced with the iOS 4 SDK.

This tag specifically focuses on using this functionality in relation to iOS development. These scripts can be used not only to automate a user's interaction with the application, but they can also contain asserts which can test if the application is behaving according to the developer's expectations.

For the new Xcode 7 UI Testing feature, see .

756 questions
0
votes
1 answer

iPhone App UI Automation using the UIAutomation framework?

Hi people I have a serious problem at hand, I have taken a navigation bar controller in my application and inside that bar I have a right button the code for which is written as follows -: UIBarButtonItem *rightButton = [[UIBarButtonItem alloc]…
AnkitSablok
  • 3,021
  • 7
  • 35
  • 52
0
votes
1 answer

UI Automation in iPhone App

Hi people I have a serious problem at hand, I have made a sample iphone app with "username" and "password" field and a "login" button and I have set the accessibility labels for all the components to be username, password and login and written a…
AnkitSablok
  • 3,021
  • 7
  • 35
  • 52
0
votes
2 answers

UIAutomation and NSNotification

I want to be able to use UIAutomation to test an app. The problem I'm running into is, I need to download allot of data from the network. Is there a way to pause a UIAutomation script until a NSNotification is posted, or do I just need to delay()…
SkylarSch
  • 389
  • 2
  • 9
0
votes
1 answer

Running Apple Instruments from command line throws: The simulated application quit

This popup prevent other scripts from running and prints the following: instruments[2596] : kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection instruments[2596] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint()…
Ron D.
  • 3,774
  • 6
  • 31
  • 39
0
votes
1 answer

Retrieve number of views in a scrollview

I am currently trying to write some automated tests within instruments and am having a bit of an issue, is it possible to retrieve the number of views/panes in a scrollView so that I can say, if more than one view, scrollRight() for example?
ChrisH
  • 285
  • 3
  • 13
0
votes
1 answer

How to automate actions performed on the iPhone simulator?

Right now I am automating tests for an app using UIAutomation class. But my app has certain features which, I believe, can't be tested using just UIAutomation. For example, there is a feature that if a new contact is added to the addressbook, a…
0
votes
1 answer

How to use the function ` performTaskWithPathArgumentsTimeout` of the UIAutomation class?

I am automating some test cases for an iPhone app and I am using the UIAutomation class. I want to use the function performTaskWithPathArgumentsTimeout, which I believe runs some external script. But I cant use it. I have the following code: #import…
0
votes
2 answers

How can I test if a link is opened from my app using UIAutomation?

I have this app that has a login screen with fields for username and password. Below the fields there is this 'Forgot password link'. I am testing this app using UIAutomation class. How can I test if, when clicked on that link, the linked page is…
0
votes
1 answer

Instruments UI Automation tests for iPhone app

I'm a newbie in UI Automation using instruments and I have the following question: - the application starts and I get the mainWindow screen (which contains SignIn and Register buttons) - I've managed to write the JavaScript code in order to tap…
0
votes
1 answer

Accessing a UISearchBar in a UIToolbar, in a UINavigationBar in UIAutomation

We only support landscape mode and for some reason when we would push to a different view controller, rotate the app, then pop, our UISearchBar would then take up the entire navigationBar and pushing even the title to the LHS. So we ended up…
Crystal
  • 28,460
  • 62
  • 219
  • 393
-1
votes
3 answers

Guidelines to create a framework for iPhone UIAutomation tool

Can some body share your thoughts to create a framework using iPhone UiAutomation tool (Instruments)
-1
votes
1 answer

How to handle data encryption in Ranorex?

I want to get encrypted-password from database for login in Android and iOS App. I've made Username and password as data binding and by setting password-variable to the textField, I want the password to be converted/decrypted, to set password…
-1
votes
1 answer

Second Test Method is having nullpointerexception error

I am doing automation testing of an Ios app using appium server. I have implemented two classes. First one is having UI elements finding attributes, actions and a constructor. And the other one is having test methods and driver configurations. This…
Sammar Ahmad
  • 236
  • 5
  • 16
-1
votes
1 answer

iOS 12 beta 9, Xcode 10.0 beta 6 Unable to build the WebdriverAgent getting error - linker command failed with exit code 1

Getting this error while building Undefined symbols for architecture arm64: "OBJC_CLASS$XCElementSnapshot", referenced from: l_OBJC$CATEGORY_XCElementSnapshot$FBIsVisible in XCUIElement+FBIsVisible.o l_OBJC$CATEGORY_XCElementSnapshot$FBUID in…
-1
votes
1 answer

Appium XCUITest - iOS 10 Tests Are Running Very Slow

Environment: Appium: 1.6.3 Xcode: 8.1 iOS device version: 10.1 Tests running using Appium XCUITest is very slow findelement by xpath take very very long time. is there any way to make it fast?
Rashmi
  • 29
  • 4
1 2 3
50
51