Questions tagged [uitest]

249 questions
337
votes
6 answers

What are fixtures in programming?

I have heard of this term many times (in the context of programming) but couldn't find any explanation of what it meant. Any good articles or explanations?
Matjaz Muhic
  • 5,328
  • 2
  • 16
  • 34
86
votes
20 answers

The bundle UITests couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle

I can't run my test case due to this following errors : The bundle “UITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. Library not loaded: @rpath/Alamofire.framework/Alamofire. Reason:…
user2273146
  • 1,602
  • 2
  • 14
  • 27
50
votes
9 answers

Strong password autofill appears in iOS simulator

Our UI test suites are showing some unexpected behaviour where our Create Password screen intermittently auto-completes both the username and password - this results in the test being failed. The process is something like: Tap in the first create…
Estel
  • 2,154
  • 2
  • 18
  • 25
26
votes
9 answers

How to speed up UI test cases in Xcode?

Since Xcode 7 we have a nice API for UI testing. Mostly I'm satisfied with it. The only concern is related to the speed. In the beginning an ordinary UI test case (about 15 actions) ran approximately 25 seconds. Then I mocked networking completely.…
Artem Stepanenko
  • 3,423
  • 6
  • 29
  • 51
18
votes
3 answers

Cannot run XAMARIN UI TEST on xamarin.forms, error System.Exception

I want ton run Xamarin UI test, but when i run the test i have this error : System.Exception : 'The running adb server is incompatible with the Android SDK version in use by UITest: C:\Program Files (x86)\Android\android-sdk my start command-line…
Jeremy HOFFMANN
  • 1,230
  • 1
  • 11
  • 21
17
votes
3 answers

how to Detect if Keyboard is shown in Xcode UI test

I am writing a UI text in swift under the new Xcode 7 UI test framework. the requirement is to test whether the system keyboard is shown in an app. can someone give me a clue on how to do that? thanks
user2823793
  • 203
  • 1
  • 2
  • 5
15
votes
1 answer

How to obtain reference to TextField in UI Tests in Xcode 7

I am trying to use UI tests in Xcode 7 beta. I have a storyboard with two text fields. Both text fields have outlets and different Restoration IDs. I recorded the test but generated code is quite unreadable and it doesn't…
Dan
  • 11,077
  • 20
  • 84
  • 119
11
votes
1 answer

How to disable SwiftUI animations in UITests?

I tried to disable animation in UITests with the following code: let app = XCUIApplication() app.launchEnvironment = ["DISABLE_ANIMATIONS": "1"] I also tried: UIView.setAnimationsEnabled(false) But it doesn't disable animation when I run UITests…
nelson PARRILLA
  • 498
  • 1
  • 6
  • 17
11
votes
1 answer

How can I set accessibilityIdentifier to UIAlertActions?

First of all yes I have seen this so question but there is currently no answer. The root problem is that I am currently XCUITesting my app which is localized so the UIAlertActions are localized so I can't find the button. I could do a hack wherein…
Zonily Jame
  • 5,053
  • 3
  • 30
  • 56
9
votes
3 answers

Force Software Keyboard in iOS Simulator for XCUITest

I am using XCUITest to test UI behaviour when the keyboard is present - for example, if content properly moves up when the keyboard appears. For some reason, the iOS simulator insists on regularly just disabling the software keyboard. Sometimes…
BlackWolf
  • 5,239
  • 5
  • 33
  • 60
8
votes
2 answers

Xcode UITest scrolling to the bottom of an UITableView

I am writing an UI test case, in which I need to perform an action, and then on the current page, scroll the only UITableView to the bottom to check if specific text shows up inside the last cell in the UITableView. Right now the only way I can…
Amy L.
  • 210
  • 2
  • 4
  • 14
8
votes
3 answers

iOS UI Test Datepicker

I'm making a UI Test for an iOS app. I'm having trouble finding out how to use automated testing for a date picker. Right now I'm stuck trying to find the date picker itself so I can change the values. I've searched many threads regarding this issue…
Mystified
  • 137
  • 1
  • 9
7
votes
2 answers

How do I get the number of elements matching an identifier, say "fooImage" returned by an XCUIQuery?

lets say I have a table with three images whose accessiblityIdentifier set to "fooImage". XCTAssertTrue(table["tableName"].images.count == 3) will work, but this is sucky -- what if someone adds another image type? I want the count of all the images…
ablarg
  • 2,400
  • 1
  • 24
  • 32
7
votes
1 answer

UITests Disabled in XCode

My UITests are suddenly greyed out in XCode's test pane. (See image below.) As a result, they don't run when I choose Product -> Test. Only the Unit Tests Run (which are not greyed out.) Despite them being greyed out, I can ctrl-click on each…
davidgyoung
  • 63,876
  • 14
  • 121
  • 204
6
votes
0 answers

UITests fail when run with Fastlane

I am working on an iOS app and the goal is to successfully run tests using Fastlane. When I run tests with Xcode, everything works fine. Tests are only failing when run using Fastlane. This is the error message: Failed to get matching snapshots:…
arber
  • 61
  • 1
  • 2
1
2 3
16 17