xcode-ui-testing Questions

10

So with the new Xcode update Apple has revamped the way we do UI testing. In instruments we used java script function "isVisible" to determine if our targeted element is visible. I'm tryi...
Pecten asked 18/9, 2015 at 7:44

4

I am new on Xcode + ios testing. I am going to automate ui of an existing ios project in swift. The problem is that I am unable to find table view of a view. Here is my code which i used to finding...
Codfish asked 8/6, 2017 at 8:58

5

I am testing adding a comment to my app, on my other UI tests I have used the typeText function and everything works perfectly fine. I have also clicked to make Connect hardware keyboard' is off. T...
Walton asked 12/9, 2016 at 13:20

5

Solved

I recently ran into a situation where I needed to be able to check the current on/off state (NOT whether it is enabled for user interaction) of a UISwitch from within an existing bucket of XCUITest...
Ampere asked 28/5, 2017 at 1:19

3

Solved

I've got a subclass of UIView, let's say it's class DemoView: UIView { } which contains UILabel and UIButton. I needed to group it and add UIAccessibilityCustomAction so I've overriden the var acce...

4

Solved

I want to use UI testing for a game using SKSpriteKit. As my first tries did not work I wonder if it possible to use Xcode UI Testing with SpriteKit.
Iridectomy asked 15/12, 2015 at 15:51

2

I'm running into an issue when running UITests in Xcode the simulator is launched but not visible, the tests still run fine, but I can't see what's happening. I believe the test is running because...
Marcelline asked 17/12, 2020 at 19:49

3

Solved

I am completely beginner about UI and unit tests, and very confused about how to use them, as well as how to differentiate them. So I have thought about the following use case: I have a user who h...
Anthropoid asked 5/10, 2018 at 15:21

2

XCUIApplication *app = [[XCUIApplication alloc] init]; [app.buttons[@"Committee"] tap]; [app.buttons[@"Login"] tap]; [app.buttons[@"Add Presenter"] tap]; XCUIElement *nameTextField = app/*@START_M...
Building asked 6/12, 2015 at 8:12

7

Solved

I have UI tests which testing login functionality (and uses it to test other stuff), but sometimes when focus is changed from one field to another - the keyboard hides, and although the cursor is b...
Weixel asked 24/6, 2016 at 9:52

4

Solved

I have a series of UITests I want to run as individual tests but I don't want to relaunch the app between each test. How can I launch the app and keep it open so it doesn't shutdown and restart bet...
Vargueno asked 15/12, 2015 at 15:47

10

Solved

I am writing UI test cases using the new Xcode 7 UI Testing feature. At some point of my app, I ask the user for permission of camera access and push notification. So two iOS popups will show up: "...
Nalepka asked 21/8, 2015 at 20:42

4

I'm writing a UIAutomation test case and I need to wait for the user to be activated before continuing. There doesn't seem to be a nice way to check for a button to change to the enabled state. W...
Morea asked 8/7, 2015 at 18:7

4

Solved

The problem is when I try to access back bar button item because it is presented with: Restaurants title, Back title without title Like it is on the screens: Currently I access it like this: l...
Posterity asked 26/7, 2016 at 16:27

3

Solved

I am trying to replicate a pull to refresh on a UITableView using the new Xcode UI testing framework in Xcode 7 (beta 3) My current approach is dragging from the table to whatever element below th...
Explicable asked 8/7, 2015 at 19:20

2

I am writing UITest cases for my iOS Swift app. In the app I have created a custom right item button on the navigation bar in this way: let barButtonItem = UIBarButtonItem(customView: customView) ...
Libbie asked 9/1, 2019 at 19:28

4

Solved

I have built a simple tab bar with 3 tabs. I want to run a UI test to make sure that if the user clicks a tab bar item, the correct view controller shows. How would I go about doing that? Below...
Rosenberg asked 25/10, 2016 at 2:9

3

How to get the value of textfield in XCODE7 UITesting? var b = XCUIApplication().childrenMatchingType(.textField).elementBoundByIndex(0).stringValue
Humberto asked 5/8, 2015 at 19:58

2

Solved

I'm automating UI testing using swift in xcode and I need the hardware keyboard to always be disabled for my tests. Is there a way to make sure the hardware keyboard is disabled without human inter...
Count asked 31/5, 2016 at 18:28

5

Solved

I have a test for a collection view that works like this: func testDeleteItem() { app.collectionViews.staticTexts["Item"].tap() app.buttons["Delete"].tap() XCTAssertEqual(app.collectionViews.c...
Sleet asked 12/11, 2015 at 19:36

4

Solved

I want to use Xcode UI tests with the Fastlane Snapshot to make screenshots of the Cordova app. Basically, as my entire app is just a web view, all the Xcode UI test helper methods become irrelevan...
Dreeda asked 29/3, 2016 at 13:2

2

Solved

Simple problem. I got button which perform segue to next view controller. I want to write UI XCTest to tell me did it open view controller i wanted.
Longheaded asked 23/11, 2015 at 13:32

1

I am unable to run UI tests for a few days. It is failing while app launch portion with error Expired token: no operation still exists for this token`. If i run the whole class which contains ...
Pronuba asked 16/1, 2018 at 12:3

2

Solved

I'm adding a child view to my view programmatically, and when I do I attach all accessibility params to it: [labelView setAccessibilityLabel:@"label"]; [labelView setIsAccessibilityElement:YES];...
Armistice asked 21/4, 2016 at 17:15

3

When trying to run my UI Tests on my device I get the error: XCTRunner[1476:104021] The bundle “AppUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstal...
Catania asked 23/11, 2015 at 20:12

© 2022 - 2024 — McMap. All rights reserved.