Questions tagged [ui-testing]

User interface testing is the process of testing a product's graphical user interface to ensure it meets its specifications.

User interface testing is the process of testing a product's graphical user interface to ensure it meets its specifications. Test cases attempt to cover all the functionality of the system and fully exercise the GUI itself. Wikipedia

829 questions
8
votes
4 answers

Android Espresso UI test - Test running failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'

I faced with the following problem: When i trying to start a stand-alone UI test using Espresso i always get the following console error message without the running the test. Test running startedTest running failed: Instrumentation run failed due to…
redrom
  • 11,502
  • 31
  • 157
  • 264
8
votes
1 answer

How to start with empty Core Data for every UI Test Assertion in Swift?

I have an application that makes use of core data. The behavior of the application is different depending on whether that data has been populated yet. I had hoped that, before each test case, the core data would be emptied, making each test case…
Noah
  • 1,608
  • 15
  • 31
8
votes
5 answers

Selenium Chrome suppress/dismiss client certificate selection dialog

How can I suppress or automatically dismiss the client certificate selection dialog with selenium (chrome driver)? I can't use this certificate, because it is stored on a chip card and I would have to enter a PIN. If no card is available, our…
8
votes
2 answers

Documentation for UI Testing in XCode 7

I was wondering if there is any documentation for the new UI Testing in XCode 7 introduced at WWDC 2015. If there is no documentation, are there any user-produced versions that are worth looking at? Thanks
SalmonKiller
  • 2,183
  • 4
  • 27
  • 56
8
votes
5 answers

Is it possible to take a screenshot and test pixel values with espresso?

I started using espresso and wrote some simple UI Tests for clicking on buttons, typing in text and checking if everything is there where it should be. Now I wanted to take a screenshot and test some pixel values, but I can't find a way to do…
meatboy
  • 131
  • 1
  • 4
7
votes
2 answers

Robotium. waitForActivity() returns false for embedded activity in TabHostActivity

I have a TabHostActivity that has 4 tabs (and 4 corresponding Activities). When in the test I click on one of them("Search") the SearchActivity should appear (and it actually does). The problem is that in Robotuim-test I try to wait for this…
Taras
  • 488
  • 6
  • 21
7
votes
2 answers

How to add test case grouping in Cypress

I am currently working on UI Integration tests using Cypress. I am looking for ways to add test case grouping in cypress similar to the standard TestNG. I was not able to find any grouping features in cypress documentation. I did find this post:…
sgv393
  • 133
  • 2
  • 9
7
votes
0 answers

Android Espresso Testing for Chrome Custom Tab Intents

With the following code snippets, I've been trying to use Espresso (UiAutomator for automatically filling in the user input fields) for testing out a login auth flow using the OpenID OAuth 2.0 library where logging in occurs externally via a custom…
DaveNOTDavid
  • 1,753
  • 5
  • 19
  • 37
7
votes
2 answers

Disable auto-correct functionality in Espresso test

I wrote an Espresso test that writes some text to a TextView, performs an action and then checks whether the text in the TextView is still the same. The test fails on one of the test devices (Huawei P20, Android 8.1.0) because the entered text is…
7
votes
1 answer

Flutter: Running multiple UI tests from different files

Is there a way to run multiple UI tests in Flutter when the tests are in different files. Currently, when one wants to run a test that is called differently than main_test.dart then target parameter is used: flutter drive…
Tomek Polański
  • 1,563
  • 12
  • 20
7
votes
1 answer

iOS UI Testing vs Integration Testing

So I've been trying to read about UI and Integration testing (specifically for iOS development). I always though these tests were different, but a lot of the integration tests example I see, appear to be what I would call UI testing. So now I'm…
Welton122
  • 1,101
  • 2
  • 13
  • 28
7
votes
3 answers

How to write XCUI test for whether I navigate to correct screen or not?

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 code is like func testExample() { let…
New iOS Dev
  • 1,937
  • 7
  • 33
  • 67
7
votes
3 answers

Xamarin.UITests - testing on real device - iOS - app permissions popups issue

I've iOS app that needs some privileges (GPS, Push notifications). When app starts for a first time iOS asks user if they're ok with granting those permissions to application. I've written some UITests and want to automate running them on locally…
7
votes
3 answers

Timed out waiting for result of ClearAppData2 when running Xamarin UI Tests for Android

I've created automatic Android and iOS UI-Tests for my Xamarin application with the Xamarin UITest framework. When running the tests locally, they work fine, but when running them on the Bitrise CI, the iOS tests run fine, but the Android UI Tests…
Alexander Pacha
  • 9,187
  • 3
  • 68
  • 108
7
votes
5 answers

Wrong cells count for collection view in UI Tests

I have a test for a collection view that works like this: func testDeleteItem() { app.collectionViews.staticTexts["Item"].tap() app.buttons["Delete"].tap() XCTAssertEqual(app.collectionViews.cells.count, 2) …
Tomasz Bąk
  • 6,124
  • 3
  • 34
  • 48