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
4
votes
5 answers

I can't make swipe gesture work for me in Appium using Java

I can't made Swipe action work. I did browsed through the web for a few days and found many similar questions but there is no working answer. Also I have tried TouchAction class, doesn't work as well. I have Appium Version 1.4.13 (Draco) and using…
Sashko
  • 191
  • 3
  • 10
4
votes
1 answer

instruments[34247:1345307] Attempting to set event horizon when core is not engaged, request ignored

I get this error during ui automation and am unable to resolve it. This stops my automation flow ... instruments[34247:1345307] Attempting to set event horizon when core is not engaged, request ignored
4
votes
4 answers

Backdoor concept in Appium (like in Calabash) for UI testing

In Calabash you can implement a backdoor, i.e., a way to call a method in the app delegate during test case execution. This makes it possible to simulate non-UI/external events like a Bluetooth device to appear/disappear, etc. in simulator. (I…
Jens Schwarzer
  • 2,840
  • 1
  • 22
  • 35
4
votes
1 answer

UIAutomation test invocation from the command line with Xcode 6

Running UIAutomation tests from the command line seems to break often with new Xcode releases (judging by past posts). Having never used the command line scripting for this, I found this post from 2012: Automation Instrument from the Command…
idStar
  • 10,674
  • 9
  • 54
  • 57
4
votes
3 answers

iOS8 - is there an example of UIAutomation framework from code?

I've been reading about UI automation using instruments, and the old documentation suggested that this is done using a javascript library to access frontmost app, then access UI view hierarchy. I see that an iOS8 device has "Enable UI automation"…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
4
votes
3 answers

Can I launch app which is installed on iPhone using appium without providing .app path

I want to launch an already installed app on iPhone/iOS simulator without providing .app or .zip path. Since I do not have those files with me now. Is it possible? Can I launch by just providing bunddle Id. Thanks in advance
Changdeo Jadhav
  • 706
  • 9
  • 23
4
votes
1 answer

running UIAutomation script in many macs?

I could create and replay the following script very well in the mac I Use. var target = UIATarget.localTarget(); UIATarget.localTarget().delay(15); target.frontMostApp().mainWindow().tableViews()[0].textFields()[0].tap(); When I run the…
user141302
4
votes
1 answer

UIAutomation : Cancel button on Alert view is tapped without actually doing it

I'm facing this weird problem in UIAutomation. I am checking an alert. In that, I am trying to log alert title and alert message. My code for this is: UIATarget.onAlert = function onAlert(alert) { UIALogger.logMessage("alert…
4
votes
2 answers

UIAutomation not working with Distribution type of IPA

I am trying to automate the app using UIAutomation. It works only with IPA built with development provisioning profile. It stucks in case of IPA built with distribution provisioning profile whether it is adhoc or app store distribution. It just…
Gopesh Gupta
  • 707
  • 8
  • 19
4
votes
5 answers

Start Instruments from the command line

I followed this site to get started with UI Automation. http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#1.2 I am trying to start Instruments from the command line. Unfortunately I get an error: 2013-03-14 14:06:36.376…
Xazen
  • 822
  • 2
  • 12
  • 26
4
votes
1 answer

How do you set the accessibility label on an image that is drawn with Core Graphics?

I am trying to write UIAutomation tests around some core graphics logic. Currently we are using core graphics to draw an image. I'm trying to set the accessibility label/identifier/value on the image so that I can verify its presence via a…
Nate
  • 183
  • 3
  • 10
4
votes
3 answers

UI Automation onAlert method not being called on simulator

Upon initial launch of my app, I get a permissions alert asking if I will allow the app to use my current location. My onAlert method successfully dismisses the alert on my device. When I run it on the simulator, it never gets called. Other internal…
landerton
  • 119
  • 1
  • 6
4
votes
1 answer

UI test automation beyond your own app?

Is there some framework which allows to control whole Simulator (to be able to test not only inside your own app, but other apps too)? I read about: UIAutomation Test studio for iOS MonkeyTalk UISpec However, per my understanding, all of them…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
4
votes
1 answer

When recording using UIAutomation on a device, it hangs on 'Starting Capture...' . Works fine on Simulator

Has anyone else had this problem? I'm new to UIAutomation. Am using Xcode4.5, trying to record commands on my iPad 3 running ios6. When I click the record button, it just hangs on 'Starting Capture...'. I had this problem initially when trying to…
zooBetty
  • 73
  • 6
4
votes
1 answer

Can't start trace when run instrument 4.5 from the command line on devices

I try to run Instruments 4.5 fromt he command line on devices. I have the following instruments -w UICD -t…
Fish OnTray
  • 199
  • 4
  • 15