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
7
votes
1 answer

Dynamic Type & iOS Simulator: How can I set the value?

I want to write my UI tests so that they test all seven states of dynamic type, from the smallest to the largest. How should I do this? Can I set an environment variable for the simulator in my Scheme and then just make different schemes? Or can I…
niklassaers
  • 8,480
  • 20
  • 99
  • 146
7
votes
3 answers

How to get index of XCUIElement in XCUIElementQuery?

This is my simple UITest (customizing order of tabs in tabbarcontroller): func testIsOrderOfTabsSaved() { let app = XCUIApplication() let tabBarsQuery = app.tabBars tabBarsQuery.buttons["More"].tap() …
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
7
votes
3 answers

Android Espresso ListView click item

I have ListView with pictures and text. When I try to click item, I get error android.support.test.espresso.AmbiguousViewMatcherException: 'with id: com.cifrasoft.telefm:id/cardsGridView' matches multiple views in the hierarchy. Problem views are…
7
votes
2 answers

UI Automation White framework "NonComVisibleBaseClass was detected" exception

I am testing an application which loads a powerpoint (.ppt or .pptx) file insert it. Application gives same look an feel like powerpoint with some extra setting when the file is loaded inside the application. When I try to automate the application,…
S.Roshanth
  • 1,499
  • 3
  • 25
  • 36
7
votes
1 answer

How to mock backend interaction when running calabash tests

I'm in the phase of integrating cucumber tests for an existing application. The app interacts heavily with a backend. The simplest case being the registration of an user. In order to make the tests repeatable, I cannot go against the (real) backend…
mAu
  • 2,020
  • 1
  • 14
  • 27
7
votes
4 answers

Recording and playing back user actions on iOS simulator?

I'd like to be able to play back a series of taps on the iOS simulator, ideally produced by recording these taps. If recording is not possible, then maybe I can do it in code, either within the program, or with an external program like AppleScript.…
cannyboy
  • 24,180
  • 40
  • 146
  • 252
6
votes
1 answer

Jetpack Compose UI Testing Button onClick

I'm trying to test how a buttonClick would change the UI. The test is setup like this: composeRule.setContent { var i by remember { mutableStateOf(0) } Button(modifier = Modifier.testTag("TEST"), onClick = { i++ }) { Text(text =…
Jüri Kiin
  • 744
  • 7
  • 23
6
votes
2 answers

Test that another component is rendered on button click ReactJS

I have two separate components in two different files ComponentA and ComponentB I have a button in ComponentB Now I wish to test that when a particular button in ComponentB is clicked, ComponentA should be rendered as below: import { render, screen,…
ololo
  • 1,326
  • 2
  • 14
  • 47
6
votes
0 answers

Espresso fragment transaction testing

I am working on the project. I start learning instrumental tests using Espresso to write UI testing. I have a bottom view each bottom view tab has a parent fragment & their child fragments. I have done one wrong fragment transaction i.e when…
6
votes
1 answer

Testing my Xamarin.Forms iOS Application with Xamarin.UITest: The first test always fails

I am testing an Xamarin.iOS Application on a real device (iPhone 6s with iOS 12.1) with Xamarin.UITest. When I am running my few UI Tests, the first test always seam to crash (regardless of what is happening inside the test) due to the same error…
6
votes
1 answer

Need Help to check if element is in current Viewport with Testcafe

I'm trying to implement a custom method to find out if the element is in the current view port Below is the snippet of code that I've tried to implement but the outcome does not render the boolean result: export const isElementInViewport = () =>…
6
votes
2 answers

Testing onclick events on SVG with Cypress

I am testing a d3 application with Cypress. As of the tests, I'd like to make sure a specific function is called when a circle within an SVG element is clicked. The function is called when I'm clicking manually but the test that I wrote fails, so I…
wicccked
  • 352
  • 1
  • 4
  • 15
6
votes
0 answers

Failure to determine screen point of hittable tableViewCell

To UI test of my app, I have to enable/disable iCloud. I do this by launching the Settings app in my test, navigate to the Apple ID scene, and tap there the iCloud cell (see image below). In my test, I check that the iCloud cell exists and is…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
6
votes
2 answers

Click button if it is present, else click a different button in puppeteer

I am trying to set up an if/else statement in puppeteer to click on a button if it is present, else click on another button. I am doing something like this: if (document.querySelector('#buttonToClick') !== null) { await…
6
votes
2 answers

TestStack White - Run tests from command line

I'm looking for a solution to start my tests from command line. I created a UnitTest Procjet in VisualStudio2017 for my .NET solution. Added TestStack.White NuGet package to the project. The test are running fluently when I start from the…
Tomi
  • 3,370
  • 1
  • 16
  • 26