Questions tagged [xcuitest]

Apple's XCUITest framework for UI Testing on iOS and Mac OS.

638 questions
3
votes
1 answer

Is it possible to do iOS XCUITesting on multiple simulator devices simultaneously?

I have an app which in production will be on five different devices, talking to each other using MultipeerConnectivity. I have a bash script which launches the app on five different Simulators. This works great, but there are many buttons I have to…
eivindml
  • 2,197
  • 7
  • 36
  • 68
3
votes
1 answer

There is a way to do a "long" Swipe Left gesture to delete an element in XCUITest

I'm trying to delete an element doing swipe left over it. This option exist in two ways in my application. Do short swipe left and the delete button appears, then you can press it. No problem here. Do long swipe left and the element will be…
3
votes
1 answer

Edit recorded element in Xcode UI Testing

After recording a UI test, Xcode produces test code with the values it has recorded. In Xcode 9 some of these are highlighted in blue and don't appear to be editable: I would like to be able to copy/paste/modify these values without manually…
Chris Garrett
  • 4,824
  • 1
  • 34
  • 49
3
votes
4 answers

XC UI Testing with AWS device farm giving error "Setup Test skipped: Not enough suites found to execute"?

Archive the project and created the IPA file with development profile after that followed the following link to create the UITest IPA http://docs.aws.amazon.com/devicefarm/latest/developerguide/test-types-ios-xctest-ui.html also to reconfirm…
3
votes
3 answers

How do I install the XCUITest runner app and ipa on a real device and get the results?

How do I install the XCUITest runner app and ipa on a real device and get the results? I have a runner.app that was generated by building it for testing, and a deployed/signed .ipa. Now what I would like to happen is to have it installed on a real…
Carlos Miguel Colanta
  • 2,685
  • 3
  • 31
  • 49
3
votes
2 answers

Show simulator when running xcodebuild test in command line

Since Xcode 9, xcodebuild runs the simulators in headless mode (= the simulator is not launched in the foreground) which is a great improvement. However, I need to debug an issue with xcodebuild and UI tests and would like to see what happens in the…
Kamchatka
  • 3,597
  • 4
  • 38
  • 69
3
votes
1 answer

Why is XCUITest Failing on Xcode running iOS 11.0.1

My UITests were running fine till xcode 8.3 (iOS 10). After updating xcode and upgrading to swift 4 Test Fails with following error crashed in external symbol iOSSimulator: Unable to connect to "com.apple.instruments.deviceservice.lockdown"…
Manoj
  • 1,482
  • 2
  • 20
  • 53
3
votes
2 answers

Xcode 9 UITest not working

I try to develop an UI Unit Test for my Application. I created a UI Test Target and wanted to launch the example XCTest which is generated with the creation of the Target. When I try to launch the Test I get the error message: Could not obtain…
Marcel T
  • 659
  • 1
  • 7
  • 28
3
votes
1 answer

Access ID does not work when testing a textfield with `isSecureTextEntry = true`

So i am trying to access and confirm the presence of a password textfield in my uitests but as soon as assign their isSecureTextEntry = true the tests can no longer find them by the accessID. Does any one know why? and if there is a way around this…
Wazza
  • 1,725
  • 2
  • 17
  • 49
2
votes
2 answers

Appium can’t get text from XCUIElementTypeStaticText

I have simple XCUIElementTypeStaticText in my iOS app, but getText() doesn't work as expected it doesn't return text inside. Any tips&tricks or workarounds? Appium 2 WebdriveriO - 8.3.2 iOS: 15 Node: v16.17.0 code: const reportTitleName = await…
Babu
  • 4,324
  • 6
  • 41
  • 60
2
votes
0 answers

XCUITest with Simulator stop working on MAC M1

Testing XCUITest on a Macbook Pro runs smoothly, but when I try to run the test on a Macbook Air M1, it fails. During the test, the simulator stopped working and I saw a black screen. what should i do. Thank you It occurred when I launched the…
Nannie
  • 21
  • 2
2
votes
2 answers

XCUITests: Can't tap element on scrollview while views are stack on each other

Sample Project This is a sample project that showing the issue. It's storyboard based, but method of building interface doesn't matter. It's UIViewController with UIScrollView for entire screen and 128 pts height view that is on top of this…
Jakub
  • 13,712
  • 17
  • 82
  • 139
2
votes
3 answers

Offscreen tableview headers not appearing in XCUI Test view hierarchy

I have a UITableview with custom view that appears in the viewForHeaderInSection delegate method. It appears and functions fine when running the app. While doing UITests, I've noticed that this custom view identifier doesn't appear in the view…
p0ny
  • 317
  • 2
  • 10
2
votes
2 answers

What's the difference between `twoFingerTap()` and `tap(withNumberOfTaps:1 numberOfTouches:2)` when running it on Fastlane?

I have been working with UI test on iOS, and using XCUITest on swift. In one test I need to tap with two fingers on the screen at the same time. I used twoFingerTap() . The test passes when I run it from Xcode. But running by command line with…
Karla
  • 96
  • 1
  • 1
  • 6
2
votes
1 answer

Select parent of XCUIElement

How can I select the parent element of an XCUIElement in XCUITest? According to the documentation, the class has children() and descendants() but nothing to select parents or siblings. It seems to me I must be missing something - how can Apple have…
Alex Voss
  • 147
  • 9