xcode-ui-testing Questions
4
I am implementing UITests for my iOS app.
So far, I've been able to do some simple testing, but I've come to a tableView where there are two sections. Each section has a sectionHeaderView containin...
Valladares asked 12/1, 2017 at 13:12
4
My team and I have been setting up a Jenkins server to automate running unit and ui tests on a Mac Mini that we use as a build server. This Mac Mini has no peripherals attached to it, and the only ...
Villeneuve asked 30/11, 2015 at 22:31
3
Solved
My app has a login screen. If the user presses the login button without entering any text in either the username or password fields, the app will display a UIAlertController with an error message.
...
Sandell asked 12/11, 2015 at 9:13
2
I used to be able to access results in Derived Data inside the .xcresults package. .xcresults package still exists, but where there used to be a file named "TestSummaries.plist", and subdirectories...
Impignorate asked 14/10, 2019 at 20:10
1
Solved
Apple has re-designed the share sheet that appears, which has now broken my UI tests.
I have attempted to record a new UI test through Xcode, but as soon as I tap on the dismiss button, the test t...
Masterful asked 14/10, 2019 at 17:37
1
Solved
When I'm running UI tests in parallel on multiple simulators, the cloned simulators appear to be totally invisible to xcrun simctl.
When running xcrun simctl list, the source simulator appears, bu...
Turbine asked 8/10, 2019 at 16:24
3
Solved
I am using the UI Test Case class integrated in Xcode and XCTest to test app UI. I want to test something like this:
app = XCUIApplication()
let textField = app.textFields["Apple"]
textField.typeT...
Incantation asked 18/11, 2015 at 22:27
2
I'm currently using Fastlane Snapshot to automate taking screenshots for my application. It's all based on UI Tests.
I'm trying to add this same functionality to an iMessage App/Extension.
So cur...
Dwelling asked 24/5, 2017 at 6:40
3
Solved
I would like to write a test like so:
When my app goes to a certain pane, it should request permission to use the camera.
I want to test whether or not the pane appears. I am using XC's builtin U...
Dupaix asked 4/3, 2016 at 18:51
6
Solved
I want to have a test pause and wait for an element to appear on screen before proceeding.
I don't see a good way to create an expectation for this and wait using
public func waitForExpectationsW...
Moretta asked 2/12, 2015 at 16:29
2
I'm creating Automate UITest test case where I'd like to test the scenario when users make 3D Touch interaction with an element, then shows them Peek and Pop view.
I can't seem to find any possibl...
Christly asked 2/9, 2016 at 3:58
1
Disable Connect Hardware Keyboard setting for Simulator when executing Xcode 10 UI Tests in parallel
When I run my UI Tests with parallel execution enabled, multiple clones of an existing simulator (for example - iPad Air 2) are created to run different test suites.
In a Run Script from this Stac...
Daily asked 9/11, 2018 at 16:0
8
Solved
I am writing UI Test Cases for one one of my app using the XCUIApplication, XCUIElement and XCUIElementQuery introduced in Xcode7/iOS 9.
I have hit a road block. One of the screens in test case re...
Rhythmical asked 31/7, 2015 at 12:28
4
Solved
I want to make my app to go to background, and then comeback to the foreground.
To make an app to go background: XCUIDevice.shared().press(XCUIDeviceButton.home)
To terminate an app(force tap): X...
Dorindadorine asked 31/1, 2017 at 7:5
3
Solved
In my UI tests, the frame property of some XCUIElement are found, but not of others.
The accessibility identifiers used below are set in storyboard, and app is initialised in setUp() as XCUIApplica...
Cloister asked 3/1, 2018 at 10:45
3
Solved
I just started studying for UI testing in iOS. When I press record and tap on first index of the table, it generate codes like this.
XCUIApplication *app = [[XCUIApplication alloc] init];
[app.tab...
Generalize asked 12/4, 2016 at 7:35
3
Solved
I'm trying XCode for iOS UI testing. My test application has UITextView element with accessibility identifire displayTextView.
I tried simple test that taps this element, types some text it and t...
Adjective asked 16/11, 2016 at 12:16
2
I want to support VoiceOver. I have an UIButton inside of an UITableViewCell. According to a best practice I have disabled the button for accessibility (.isAccessibilityElement = false) and impleme...
Glycogen asked 19/11, 2018 at 11:36
4
Solved
Is there a way to send the application to background? Similarly to how you can call XCUIApplication.terminate(), I have some UI Elements to test on applicationDidBecomeActive(_:). Does anyone know ...
Bunde asked 11/11, 2015 at 14:44
3
Solved
We do have troubles getting our CI to work with Xcode. We encounter the issue Could not determine bundle identifier for xxxTest TEST_HOST: some path that does not exist.
What we have done so far:
...
Preselector asked 4/10, 2016 at 8:56
1
Solved
In XCTest there's a way to get all UI elements by type, and then filter by accessibilityIdentifier like:
app.buttons[someID]
But what if I don't know the type of the view? If I'm looking for a U...
Wirewove asked 14/4, 2019 at 17:40
1
Using UI tests, I'd like the app to respond to shake gestures, and I would like to programmatically trigger a shake gesture in my swift UI tests.
Triggering the shake gesture while recording durin...
Hexapla asked 25/7, 2015 at 22:0
4
I have a UI test that checks the value of static text element, waits a few seconds and checks again to confirm a change. At first it wasn't working because the hierarchy was not updating. I noticed...
Adelric asked 16/12, 2015 at 19:28
2
Solved
I have an variable that's of type .Image and class XCUIElement. Something like this:
var image = app.descendantsMatchingType(.Image).elementAtIndex(0)
Is there a way I can extract the actual ima...
Zeus asked 6/7, 2015 at 16:25
5
Solved
We have updated out Swift 2.3 project to Swift 3 recently using Xcode 8.2.1 (8C1002), and now most of our UI Tests related with tableViews and the isSelected property aren't working. It's always re...
Glossectomy asked 21/3, 2017 at 18:48
© 2022 - 2024 — McMap. All rights reserved.