xcode-ui-testing Questions

2

Is there any way to automate SFSafariViewController? I like the Xcode 7 UI test feature, but it seems it does not support SFSafariViewController automation. Some of the UI flows I am testing requir...
Zetland asked 24/9, 2015 at 13:44

7

Solved

I have a picker view with few items: "Red", "Green", "Yellow", "Black". In my UI test I need to select a specific item "Green" from it. I am using the XCTest UI testing APIs that were intruduced wi...
Cribriform asked 6/7, 2015 at 23:32

2

I have an App with Today Widget. So I would like to perform some UI testing on it. I found a way to open Today/Notifications panel. It seems easy: let statusBar = XCUIApplication().statusBars.el...

2

Solved

Here is a pic of the table I'm working with. I'm just trying to get the color of "requested" (gray) or "draft" (orange). I'm able to get the actual string of "requested" or "draft" by var timeS...
Longley asked 10/6, 2016 at 18:9

1

Solved

I have 3 screens, lets say, Login Forgot Password Help screen By default the Login screen open when the app starts. The Forgot Password screen is shown when you click on the Forgot Password but...
Polytrophic asked 28/2, 2018 at 0:53

3

Solved

I'm implementing push notifications in an iOS app, and as I'm doing so, I want to write a UI test that verifies that the app does the correct thing when it is launched with a certain push notificat...
Sandysandye asked 22/2, 2017 at 16:2

2

Solved

I have a scenario where I have to rotate my simulator while xcode ui test is going. To rotate the simulator, I use the below code UIDevice.currentDevice().orientation let value = UIInterfaceOri...
Elater asked 26/9, 2016 at 12:15

1

Solved

In my UI tests, I create a UIView programmatically using (shortened) let topMarker = UIView.init(frame: CGRect.init()) … topMarker.accessibilityIdentifier = kTopMarker The topMarker view is in...
Sextain asked 17/2, 2018 at 20:14

1

Solved

In my one of UITableView have more then 10 rows. I want to scroll till last row while UITestCase running. I have written below code to scroll till last row. -(void)scrollToElement:(XCUIElement *)...
Grubbs asked 24/1, 2018 at 9:24

1

Solved

In Xcode 9.2, for my iOS app, I have a Scheme for running my UI Test suite. In this scheme, under the "Test" tab, I have both environment variables and arguments defined. When my tests run, these v...
Hinman asked 11/1, 2018 at 2:42

4

Solved

I am using the UI test APIs introduced in Xcode 7 XCTest. On my screen I have a text that is loaded from the network. The test fails if I simply check it with exists property. XCTAssert(app.stati...
Garfish asked 7/7, 2015 at 6:27

3

Solved

I am running Xcode's UI Testing through Jenkins. Screenshots are taken at each step and so after running the suite for a while, the Mac uses up all its hard drive space. Does anyone know if you can...
Ekaterinodar asked 29/2, 2016 at 11:0

5

When UI testing in Xcode(7.2 and 7.3), my tests sometimes fail with a rather generic error: Assertion Failure: UI Testing Failure - Failure fetching attributes for element I tend to get this e...
Catercorner asked 22/4, 2016 at 15:42

5

Solved

This is my simple test case: import XCTest @testable import MyApp //it doesn't work because of this: class TabBarControllerTests: XCTestCase { override func setUp() { super.setUp() let d...
Untouchable asked 2/8, 2015 at 6:16

2

Solved

I want to figure out which segment is selected on a segmented control in Xcode's new UI Testing in Swift. I can get the segmentedControl XCUIElement, and the 'buttons' associated with it, but I'm ...
Whelk asked 23/7, 2015 at 21:15

2

Im using Jenkins to run UI Testing suites for various xcode projects. Most of the projects shows the 'Test Result Trend' graph with no problem. However, one of my projects fails to show the graph....
Baikal asked 21/4, 2016 at 10:59

4

I encountered a problem with Xcode 7 UI Testing. The app displays two alerts after my user logs in, the Request Location Alert and the Push Notifications Alert. Those notifications are shown one r...
Kisung asked 23/11, 2015 at 16:0

2

Solved

I am using XCTest UI Test framework to check rows in a table view. In my test I need to verify the existence of text in a table view row given its index. I was thinking of using tableRows.elementB...
Proline asked 3/9, 2015 at 0:46

1

I am testing an IOS app with Xcode inbuilt UI test cases which is working fine , i have enabled code coverage which reports third party cocoa pods library in code coverage report , I want to know h...
Weatherwise asked 1/6, 2016 at 13:14

3

Solved

I've got an app whose main purpose is to enter data into HealthKit. I'd like to write some Xcode UI tests to verify that it's writing this data successfully, but I'm having some difficulty verifyin...
Monamonachal asked 15/1, 2016 at 21:33

3

I am writing test UI test case for following UI I want to test on Login click whether I am navigating correctly on Dashboard screen or not. Is there any method to do this? My current testing c...
Hardej asked 13/8, 2017 at 6:33

5

Solved

I am automating an app using UI Testing in Xcode 7. I have a scrollview with XCUIElements (including buttons, etc) all the way down it. Sometimes the XCUIElements are visible, sometimes they hidden...
Gow asked 1/10, 2015 at 15:31

3

Solved

My Storyboard has only one UI, and it has navigation bar with one UIBarButtonItem with System Item: Add. It also has another info UIButton. When doing UI testing in English everything works good w...
Gilbertogilbertson asked 5/10, 2015 at 11:24

1

Is it safe to replace all instances in my UI testing code of .element(boundBy: 0) with .firstMatch? I would think so, but the documentation from Apple isn't very clear about it (especially in the ...
Obstruct asked 18/9, 2017 at 10:0

1

I have one more question based on my previous discussion thread of localized strings. Here is the link: How to do automated UI testing for system button on XCode7? Now if I switch the iOS system l...
Lampedusa asked 4/12, 2015 at 7:51

© 2022 - 2024 — McMap. All rights reserved.