xcode-ui-testing Questions

2

I am intermittently getting an unhandled DOMException 105. It only happens when running my UI tests. If I comment out the use of loadHTMLString:baseURL call of UIWebView, then the exception no lon...
Slung asked 5/1, 2017 at 6:10

3

As part of my UI Tests, I'm generating a random string as titles for my objects. The problem is that when this title is input via a keyboard (using XCUIElement.typeText()), iOS sometimes accepts an...
Vengeance asked 1/10, 2015 at 23:30

2

Solved

I'm using UITest for testing an objective C app, using swift for the tests. XCode 7.3, sim 9.3 Every test case invokes XCUIApplication.launch(), which kills any running application by sending SIG...
Disciplinary asked 4/4, 2016 at 17:26

4

Solved

I am writing tests for my app and need to find the button "View 2 more offers" there are multiple of these buttons on my page but I would just like to click on one. When I try this, an error comes ...
Diandiana asked 12/9, 2016 at 10:49

3

I'm trying to implement some UI tests in my project. Everything goes fine as long as I keep it simple: record the test case, add some asserts, then run the test. This works fine, however when I try...
Ion asked 17/11, 2015 at 10:48

2

I start a new project from File -> New -> project I add a button to ViewController. I open UITest folder which created by xcode by default. Run the test code. It fails: 2016-03-16 12:57:09.191 ...
Flocculant asked 16/3, 2016 at 2:3

2

Solved

In Xcode 8 / Swift 3, using the coordinate(withNormalizedOffset: CGVector) function to interact with an XCUIElement appears to work only in portrait mode. To test this functionality, I created a s...
Bellybutton asked 12/11, 2016 at 0:52

1

I currently encountered this issue while running my UI Tests for iOS Assertion Failure: UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25201 g...
Regimen asked 22/6, 2016 at 16:5

4

Solved

Apple introduced in Xcode 7 new UI Testing but I have a struggle whenever the tests launches the app, it starts with data that the application had before. It means tests cannot be independent and c...
Brazee asked 2/9, 2015 at 10:49

1

This is what I have so far and I am simply trying to get the result that is output in a label and test it against set results: func testExample() { let app = XCUIApplication() let enterRomanNum...
Mottle asked 31/5, 2017 at 15:54

2

We are getting this error when recording a UI test. At this point the recorder stops recording code. What does it mean?
Overwinter asked 7/4, 2016 at 19:27

2

How do you type into a UITextView inside a XCTestCase? The UITextView is the first responder so it already had focus and the keyboard is up. I've tried: app.typeText("footer") app.textViews.eleme...
Alkaloid asked 2/6, 2017 at 18:20

2

Solved

I have some buttons in my user interface that only display an image and no title. How can I access them during a UI Test? window.buttons["delete"].click() doesn't find the button due to lack of tit...
World asked 4/6, 2017 at 16:15

6

Solved

I have the following XCTest UI test that types text into a text view. let textView = app.textViews.elementBoundByIndex(0) textView.tap() textView.typeText("Hello world") When run as an Xcode bot...
Amphibolous asked 27/10, 2015 at 2:33

2

Solved

I'm trying to extend the new UI testing functionality in Xcode 7 by snapshotting the current screen elements (labels, images, buttons) and saving their accessibility information to json files. The...
Pasty asked 11/9, 2015 at 11:30

1

I see this about 1/10 times with my UI Tests on Xcode7.3/iOS9.3 Test Case '-[WhatevUITests.RegistrationUITests testVerifyUnsupportedPhoneNumberAlert]' started. t = 0.00s Start Test t = 0.00s Set...
Vampire asked 4/4, 2016 at 21:18

1

I've started using the UI Test features of Xcode 7, and when I run a test, I get the output from testing showing up in the content pane of the debugging area. However, as soon as the testing is f...
Electrokinetic asked 15/10, 2015 at 22:33

1

When running UI tests on my iOS app on our Jenkins CI slave, the UI is incorrect and my tests fail. Locally, the same UI is as expected and the tests pass. I haven't been able to figure this out a...
Hapte asked 5/1, 2017 at 14:35

1

Solved

I apologize if this is a duplicate question. I haven't been able to find one and am at a loss. My tests cannot pass because the app doesn't launch. I ran the tests and watched the simulator, and wi...
Salahi asked 10/4, 2017 at 14:58

2

I would like to write a UI test in Xcode covering a login with FBDSKLoginKit. However, Facebook iOS SDK uses SFSafariViewController presented to the user in order to authenticate her and unfortuna...
Tupi asked 21/4, 2016 at 12:55

2

Solved

Just below the XCUIElementQuery class inside XCTest there are many constants where the documentation note above it states: Constants for use with -[XCUIElement typeKey:modifierFlags:], represent...
Guyot asked 29/7, 2015 at 22:5

2

I've been giving a try to the new UI tests on XCode 7.3 and I've found what it seems a bug to me. The problem is that views added through the "addSubview" method seems to be completely invisibles ...
Landscape asked 22/6, 2016 at 15:37

1

My application is currently using Core Data as the persistence and I want to do some UI testing with some mock data. Currently I am running the UI tests with the data stored previously whilst devel...
Backache asked 16/2, 2017 at 21:25

2

During Xcode UI Testing, how do I insertText for a UIView that conforms to UIKeyInput? I created a CodeInputView that conforms to UIKeyInput. When I record myself manually entering a code, Xcode ...
Elyseelysee asked 2/3, 2016 at 6:32

1

Solved

I'm trying to setup UI Test in my project. I'm making a UI test that tries to login through my apps login prompt. In order to ensure that the login prompt is shown when the test launches, I'm tryin...
Rapeseed asked 13/2, 2017 at 10:31

© 2022 - 2024 — McMap. All rights reserved.