xcode-ui-testing Questions
3
We've got a suite of UI tests for our app written using KIF which I'd like to convert to use the new Xcode UI test framework.
The app is a client of a Rest AI whose responses we're currently mocki...
Euphemie asked 21/4, 2016 at 11:56
2
It is difficult to find proper documentation for the UI Testing Framework from Apple. I've seen many examples where it is possible to find buttons and labels with specific names, but how can I look...
Uttica asked 14/12, 2015 at 18:45
2
Is there a way to mock requests when writing automated UI tests in Swift 2.0. As far as I am aware the UI tests should be independent of other functionality. Is there a way to mock the response fro...
Stalder asked 8/10, 2015 at 9:34
0
Xcode 7.3.1 is giving me this error when I try and run my UI tests:
The text is:
Setting up profile generation failed
Xcode could not generate profile information for bundle identifier (com.ap...
Gentoo asked 17/6, 2016 at 14:21
1
Solved
I have written UI Tests in XCode 7.3.1 on a dedicated target. I can record a UI test but if I try to launch it (all tests or a single one), I got the following error :
Unable to find test runne...
Annunciate asked 14/6, 2016 at 11:52
1
Solved
While doing a UI test, I can test that a text exists like this:
XCTAssertTrue(tablesQuery.staticTexts["Born: May 7, 1944"].exists)
But, how do I test if a text exist, if I only know the prefix? ...
Bond asked 25/5, 2016 at 15:56
2
Solved
I've go a very simple calculator and I' trying to test whether a label gets updated when a button is tapped.
My test method looks like this:
let app = XCUIApplication()
app.buttons["9"].tap()
I...
Bravado asked 23/5, 2016 at 18:25
1
Solved
Given the following setup:
A document-based OS X app written in Swift
OS X El Capitan dev machine
Xcode 7.x
The new / upgraded XCTest framework
How can the document-based parts of the app be UI...
Fillet asked 17/5, 2016 at 21:43
0
I'm new to UI Testing and am trying to integrate the feature into an existing project. I'm trying the most basic of tests to just see the framework in action but am having some difficulty. I've add...
Place asked 9/5, 2016 at 18:19
1
Solved
My final goal is to issue
xcodebuild test
from command line picking different schemes for different languages.
Currently I have two schemes, the only difference between them is the application lan...
Opposition asked 17/2, 2016 at 17:6
4
I have a table view with a lot of cells and not every cell is visible on a screen. When I check with
table.cells.staticTexts.matchingIdentifier("My Cell").element.exists
It returns true but the ...
Viaticum asked 3/9, 2015 at 10:27
2
Solved
I'm trying to set the language and the region of my UI Testing target, and unfortunately it doesn't seem to work.
I've tried both ways, first:
Product | Scheme | Edit Scheme
Run | Options
App...
Airdrie asked 3/3, 2016 at 15:18
1
I have a project written in Swift with a main target and two test targets: one for unit testing using quick framework and it has 3 KIF tests.
The other target has the XCUITests.
So whenever I run X...
Tumbler asked 30/3, 2016 at 14:54
2
Solved
Is there a way to wait for all network requests to finish when testing UI in XCode?
I have an app that sends HTTP requests to get some data from a server, and, in UI tests, I'd like to wait for th...
Kyd asked 31/3, 2016 at 2:21
2
I am building an automation suite using Xcode 7 with swift.
My app loads with the following Alert View:
Allow "Light Alarm" to access your location while you use the app?
When I record with UI ...
Parson asked 22/9, 2015 at 8:53
1
Is it possible to perform UI tests on Action Extension targets? I am unable to create a UI testing target with the Action Extension as the "Target to be Tested." I am trying to load the Action Exte...
Vinny asked 21/12, 2015 at 12:46
3
When I try to run multiple UI tests at the same time in the new Xcode beta, it fails after the first test, with the error "UI Testing Failure: App state is still not terminated" for each test after...
Nunes asked 14/7, 2015 at 4:28
2
Solved
Sometimes while running my UI tests, I get the following error Lost connection to test manager services. No logs or anything. Happens randomly. I would provide more information but I just don't hav...
Edlun asked 24/8, 2015 at 22:58
2
Solved
I am doing an UI Unit Testing. In the picture.
They are UILabels except long description which is UITextView.
In the page I want to do assert test the value in the answer.
For the answer in the UI...
Cycle asked 9/9, 2015 at 7:12
1
Solved
I want to check if an element on my ui which start with a prefix is present. How is it possible to implement it in Xcode 7 UI Tests?
app.tables["AAA"].staticTexts["Fax: 0049XXXXXXXX"].exists
I h...
Piero asked 19/2, 2016 at 15:42
1
Solved
I am trying to find a way to tap a link with the following HTML structure:
<a>
<div id="facebook_sharing"></div>
</a>
The a tag does not have any attributes or text asso...
Straub asked 16/2, 2016 at 21:6
3
Solved
In my app I'm adding some UI tests. With one test method everything works perfectly, but when I added second method, the test is failing because of the following error:
I feel like [[[XCUIApplica...
Discretion asked 17/12, 2015 at 1:42
0
I am using XCUI tests to automate testing of some of the flows in our application (~35 test scenarios) with Xcode 7.2.1
Running these tests locally will consistently pass, whereas running them on ...
Condorcet asked 5/2, 2016 at 17:7
1
Solved
i try to run my Xcode UI Tests and just a specific method. It isn't possible with the default xcodebuild command line from apple. I found the xctool but the tool didn't found my UITestsTarget.
He...
Hemipterous asked 3/2, 2016 at 15:30
2
Solved
Can I execute UI Tests on a physical device?
I have tried a few approaches/combinations with target/scheme but I am not able to run it on a device and I am getting no errors either.
Mithraism asked 14/12, 2015 at 16:42
© 2022 - 2024 — McMap. All rights reserved.