xcode-ui-testing Questions
3
I want to run functional (UI) tests for the login procedure in my iOS app (Xcode 7.2.1).
The app's behaviour is that upon successful login, user credentials are stored in order to automatically lo...
Nikethamide asked 14/3, 2016 at 14:38
3
Xcode UI Testing takes automatic screenshots for viewing in the results navigator whenever a test fails, which is greatly helpful. However, that does not include tests that fail because a predicate...
Greasepaint asked 29/3, 2017 at 0:27
3
Solved
I'm trying to access an element within a subview and I'm finding it impossible to do so.
The hierarchy being:
View Controller:
View
tempView
userEnterView
zipCodeEntered
I want to acces...
Faline asked 26/9, 2015 at 19:43
1
Solved
I'm learning to use XCTest for UI testing. I couldn't understand of doc of XCUIElementQuery.allElementsBoundByAccessibilityElement:
Immediately evaluates the query and returns an array of elemen...
Grape asked 15/3, 2018 at 19:11
1
Solved
I’d like to add an accessibilityIdentifier to a React Native component, so that I can use Xcode’s UI testing to navigate around my app.
Is there a way to specify the accessibilityIdentifier (not t...
Bristletail asked 10/1, 2018 at 1:14
5
Solved
I've got a test like below:
let navnTextField = app.textFields["First Name"]
let name = "Henrik"
navnTextField.tap()
navnTextField.typeText("Henrik")
XCTAssertEqual(navnTextField.value as? String...
Amatol asked 22/9, 2015 at 8:26
2
I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and t...
Merovingian asked 11/12, 2017 at 14:54
2
I am experimenting with the (Xcode 7) UI XCTestCase test cases and I just stumbled onto an issue with one UIView, in which I have a UITableView with many cells(4000+).
When the app is running norma...
Unsnap asked 4/11, 2015 at 18:30
2
Solved
When I’m running individual tests using UI testing in Xcode 7.1.1 and the test is complete, the debugging console logging output disappears.
I’m running tests using the simulator and my setUp() co...
Johns asked 16/11, 2015 at 19:42
3
The following tests works fine on iOS 11. It dismisses the alert asking permissions to use the locations services and then zooms in in the map. On iOS 10 or 9, it does none of this and the test sti...
Anatolic asked 21/7, 2017 at 3:8
1
Has anybody successfully used addUIInterruptionMonitor to clear the alert produced by start()ing an SFAuthenticationSession while running an XCUITest?
I can't get it to work on Xcode 9.1/iOS 11.1....
Cistercian asked 17/11, 2017 at 13:25
3
This is my simple UITest (customizing order of tabs in tabbarcontroller):
func testIsOrderOfTabsSaved() {
let app = XCUIApplication()
let tabBarsQuery = app.tabBars
tabBarsQuery.buttons["More"...
Baeza asked 23/8, 2015 at 9:8
2
Within User Defined Runtime Attributes I set accessibilityIdentifier's value as browseTabBarButton.
But when I try to access this from UITests using:
app.tabBars.buttons["browseTabBarButton"]
U...
Leastways asked 2/3, 2016 at 12:23
2
Solved
lets say I have a table with three images whose accessiblityIdentifier set to "fooImage".
XCTAssertTrue(table["tableName"].images.count == 3) will work, but this is sucky -- what if someone adds a...
Carleecarleen asked 28/2, 2018 at 18:14
3
I'm trying to record some XCUITesting functions. I get this error.
Timestamped Event Matching Error: Failed to find matching element
Is this an Xcode bug and/or issues with the complexity of my ...
Implement asked 13/4, 2016 at 12:7
4
I have a UI test like so :
func testHome(){
if(isRedOrange.clear()){
//code
}
}
How would I access my isRedOrange.clear function from my isRedOrange.swift file from my UI tests?
Updraft asked 11/8, 2018 at 12:59
5
The following UI Test code will successfully tap the UISearchBar element. The software keyboard appears and the search bar looks like it has focus. (ie. it animates as if someone tapped it)
let s...
Goose asked 28/10, 2015 at 14:58
5
Solved
One of my screen has multiple text fields, I can land to this screen from different other screens. In each case I am making one or another text field as first responder. I am not able to write test...
Extenuatory asked 1/10, 2015 at 22:21
1
Solved
I would like to tap the last [Play] button in my app, and I'm looking for something like
app.buttons["play"].lastMatch.tap()
Is there any way to do so?
Idona asked 24/7, 2018 at 18:47
3
Wondering if anyone has found a way to run Xcuitests in parallel. Pretty sure this functionality isn't built in but it may be possible to write a script that can spread it over multiple machines if...
Michelmichelangelo asked 27/9, 2015 at 16:15
1
Solved
I'd like to override the init function for XCTestCase in UI testing for a few reasons:
To launch the app, outside of setUp() so that the app doesn't need to relaunch for every test (this is tedio...
Suppression asked 8/6, 2018 at 15:20
0
To UI test of my app, I have to enable/disable iCloud. I do this by launching the Settings app in my test, navigate to the Apple ID scene, and tap there the iCloud cell (see image below).
In my...
Successful asked 4/6, 2018 at 11:23
2
Solved
For example,
I have a sketch pad app that I want to test by drawing on it. I'd like to specify an (x,y) coordinate and make it tap and drag to another (x,y) coordinate.
Is this possible in Xcode ...
Iona asked 8/12, 2015 at 19:44
1
Solved
Working on building an automatic UI test for a swift iOS app. The app involves a web-view for logging in with facebook. Every time tap within the bounds of the web-view and try to log into facebook...
Fop asked 20/5, 2018 at 21:41
1
In Xcode 9.3, when I try to run UI test cases it started giving me below exception where ever it found lengthy messages exceeding 128 characters -
Terminating app due to uncaught exception 'NSI...
Mikiso asked 11/5, 2018 at 11:42
© 2022 - 2024 — McMap. All rights reserved.