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
5
votes
0 answers

Testing simple Loading+fetch flow with Coroutines as Android Instrumented tests with StandardTestDispatcher

I want to test the following very common usecase as an Instrumented Test in Android: When clicking a button a fetch() function is called in my ViewModel This function tells the view to show a loading-overlay It executes a fetch in a coroutine After…
kapukinz
  • 165
  • 14
5
votes
0 answers

UI testing using Cypress with authentication to Azure AD using ADFS

These are my notes for how to UI test an Azure AD single page app using MSAL.js and ADFS (in our case on-premise) and the schema associated with the process of token creation and local storage. From the tutorial: "It uses the ROPC authentication…
Davemundo
  • 849
  • 9
  • 14
5
votes
1 answer

Writing a Testcafe test to assert a loading spinner is visible after making a fetch request

I have the following scenario: Load page Expect spinner is hidden Type username Click search Expect spinner display After a few seconds delay, expect spinner to hide Assert the right user details are displayed Here is the working demo I have…
Nikhil
  • 905
  • 7
  • 9
5
votes
2 answers

Selenium C# How to handle Alert "Open Pick an app"?

I am trying to get the Alert's Text using Selenium C# for Chrome But this alert seems different from a normal JavaScript Alert, using the code below returns an error exception: string text =…
Lolpez
  • 849
  • 8
  • 17
5
votes
1 answer

In Flutter Widget testing, how to make media.orientation to portrait?

In build method, MediaQuery.of(context).orientation equals Orientation.landscape. How to make it into portrait. The test widget is wrap under MaterialApp.
5
votes
3 answers

Get an element that contains another element with a static text in iOS UITesting

How to build a query to get an element that contains another element by static text. Example: Get the first table cell that contains a label with text "cool cell" I need it because I have different cells and I want to get a cell that contains a…
iOSGeek
  • 5,115
  • 9
  • 46
  • 74
5
votes
1 answer

How to get started: testing Java Swing GUI with AssertJ Swing

While developing a Java desktop application with Swing, I encountered the need to test the UI directly, and not just the underlying controller/model classes via unit tests. This answer (on "What is the best testing tool for Swing-based…
Carsten
  • 2,047
  • 1
  • 21
  • 46
5
votes
1 answer

Empty test suite. espresso

I am new to automation testing. I wanted to run a specific test class even though i am having the test suite, it gives me output as "Client not ready yet..Test running started... Tests ran to completion...Empty test suite.." I have searched and…
5
votes
2 answers

How to dismiss a popover in a UI Test

I have a view controller that is presented using a "Present As Popover" segue. When I run the app it works as expected and tapping outside of the popover will dismiss it. However, when I run my UI test, I can't get the popover to dismiss. How should…
beyerss
  • 1,302
  • 3
  • 21
  • 38
5
votes
1 answer

Espresso with Firebase - async loading

Having an app based on firebase DB - where items are loaded asynchronously (e.g. into RecyclerView) via Firebase callbacks - how would we define Espresso check? Using a custom IdlingResource seems problematic, because ChildEventListener's…
5
votes
2 answers

XCode CI stuck running the UITests (Uploading 10 screenshots for -[AppTests textExample])

The problem is, when CI Server makes the Bot integration for the first time all (UI and UNIT) tests run fine but on second integration the server stuck with this status: and I can't cancel integration, can't stop the process, every time on second…
Imodeveloper
  • 93
  • 2
  • 8
5
votes
2 answers

Automating TestStack.White UI Testing in Windows Slave using Jenkins

First of all, I apologize if I am wasting your time, because it looks like a simple step which I am not able to figure out even after some research. Ok, here is what I am trying to achieve, I have written some UI tests using TestStack.White, I…
Venkat Rao
  • 121
  • 2
  • 13
5
votes
2 answers

Xcode UI Tests can't find views that are added programmatically

I'm adding a child view to my view programmatically, and when I do I attach all accessibility params to it: [labelView setAccessibilityLabel:@"label"]; [labelView setIsAccessibilityElement:YES]; [labelView setUserInteractionEnabled:YES]; But…
Mr.Me
  • 9,192
  • 5
  • 39
  • 51
5
votes
2 answers

launchArguments in UITesting in Xcode 7.3 not working

I've been writing UI tests in Xcode 7.3 and recently wanted to add a launch argument to enable some test code inside the app. I initially tried setting XCUIApplication().launchArguments as several people have done in various posts, but they would…
drekka
  • 20,957
  • 14
  • 79
  • 135
5
votes
2 answers

Wait for all HTTP requests to finish in XCode UI tests?

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 this data to be retrieved before continuing. Currently…
Jeiwan
  • 954
  • 6
  • 13