xctestcase Questions

3

Solved

I was looking for a solution to my problem where in I need to send my app to background and re-launch it from the recents after a particular time interval. deactivateAppForDuration() was used to ac...
Packton asked 17/11, 2016 at 11:11

3

My UI-test fails because the test waits endless until the app idles. I can not see that there is anything happening in the background, like a loading spinner. It just occurs on one tab. All others...
Dee asked 10/11, 2015 at 7:12

1

I have noticed that when a new XCTestCase class is created with a default setUpWithError() and tearDownWithError() methods, there is no call to super.setUpWithError() or super.tearDownWithError() a...
Cumquat asked 7/4, 2020 at 15:54

5

Here I'm trying to check unit test cases for view controller. - I have a view controller with button and label. - When you click on the button, it will call another method. which feeds the data to ...
Femineity asked 13/12, 2018 at 6:52

1

Solved

I'm beginning to dip my toes into Swift alongside writing UI tests and am having a problem with typing text into a textField. Below is the code: func testLoginUsernameField() { let app = XCUIAppl...
Larsen asked 15/3, 2020 at 0:46

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

1

Solved

My unit tests target needs to load an image resource for use in some of the tests, but I am having trouble loading it. I have created an asset catalog within the test target. I have added a new i...
Supplicant asked 22/3, 2018 at 5:50

4

Solved

Pretty sure my tests were running fine before I updated from Xcode 10.3 to Xcode 11. Now when I try to run a test I get the following error. The run destination iPhone 5s is not valid for tests ...
Promptbook asked 24/9, 2019 at 11:10

4

I'm trying to test my iOS app using XCTestCase in different orientations. I need a way to programmatic way to change the orientation. I tried doing this in 2 methods, but both didn't change the ori...
Diomedes asked 25/2, 2016 at 17:27

4

Solved

I have the following problem. I want to execute a piece of code before all test classes are executed. For instance: I don't want my game to use the SoundEngine singleton during executing, but the S...
Wilks asked 23/4, 2015 at 11:44

1

Solved

I'm writing a UI Test for a white label project where each app has a different set of menu items. The test taps on each menu item and takes a screenshot (using fastlane snapshot). Currently this a...
Mccaskill asked 13/3, 2019 at 12:43

2

I am trying to test a method in my framework, and I wrote a simple test case. But it fails to execute , and xcode gives me the error: ld: framework not found V***ments for architecture i386 clang:...
Tautology asked 11/1, 2016 at 20:13

3

Solved

I have the following code (trying to avoid implicit unwrapping): class MyTests: XCTestCase { var viewController: ViewController } But I'm getting the following error: Class 'MyTests' has no ...
Domiciliary asked 14/2, 2018 at 22:22

1

Solved

So recently Apple introduced this prompt: “XXXX” Wants to Use “auth0.com” to Sign In Where “XXXX” is the ios app name. This alert/dialog comes up when in the case of Auth0 the user clicks on “Lo...
Eddie asked 30/5, 2018 at 16:39

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

1

I am trying to record a test case in which an NSDocument create and saves a file (then opens + verifies the contents again). The problem is when I record my test case, once a NSSavePanel is launche...
Permutation asked 4/4, 2017 at 14:56

2

Solved

I am writing UITest cases for my app using XCTest. The app makes several server calls on the home screen. I could not navigate to the next screen. Automation often stays idle for 1 min or even more...
Interpenetrate asked 20/10, 2016 at 13:42

1

Solved

Prior to Xcode 8, you could get your unit tests to run in a particular order by alphabetizing the names of the test methods within a given XCTestCase class (as described in this answer). E.g., test...
Ceramic asked 20/9, 2016 at 19:51

1

Solved

I am trying to validate if the background color can be obtained in XCTest UI Testing, I am looking to compare the background color with the set value, so that i don't have to rely on image comparis...
Remuneration asked 29/7, 2016 at 21:1

1

Solved

I am trying to test a piece of code where I check to see if an account has already created a secret key and stored it in the keychain. If not it calls a method that starts the oauth process. My fi...
Chenoweth asked 19/5, 2016 at 11:23
1

© 2022 - 2024 — McMap. All rights reserved.