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
4
votes
2 answers

Is it possible to perform View Controller unit tests in a iOS Library?

I am creating a iOS library with a class that extends UIView and I need to perform unit testing on it. But this custom class need to be inserted in a ViewController and visible to the user to execute correctly. It does also check if the view.window…
4
votes
2 answers

Correct way to open NavigationDrawer and select items in Robotium

What is the correct way to open NavigationDrawer and select items from the navigation list in Robotium 5.1? I tried solo.setNavigationDrawer(Solo.OPENED); clickInList(position); yet they're not working.
Mahmoud Abou-Eita
  • 933
  • 1
  • 8
  • 17
4
votes
1 answer

Is AAA a good practice for Coded UI tests?

I use the AAA syntax (Arrange, Act, Assert) in all my automatic tests (Unit tests, system tests, etc). Recently I started to write Coded UI tests. Now I wonder whether AAA syntax fits here. Unlike unit tests, where each test has one act and assert…
Dennis Nerush
  • 5,473
  • 5
  • 25
  • 33
4
votes
1 answer

UI Automation how to perform swipe gesture

I want to perform swipe gesture on UITableView cell with automation script. I tried recording this action but I get this: target.frontMostApp().mainWindow().tableViews()[1].cells()[2].buttons()[0].scrollToVisible();
tadasz
  • 4,366
  • 5
  • 26
  • 33
3
votes
1 answer

Passing multiple parameters with Cucumber and Capybara

Hi I need help with Cucumber to Capybara regex match. So I want to have a Cucumber step below: I should see "10:00, 11:00, 12:00" under "div1" I want to pass in "10:00, 11:00. 12:00". In the step I want to do something like: Then /^I should see…
user_1357
  • 7,766
  • 13
  • 63
  • 106
3
votes
1 answer

UI Test for custom android datepicker Library

I'm using this library in my android project : implementation 'com.github.florent37:singledateandtimepicker:2.2.7' but when I'm doing UI testing with Espresso but when use it like that : …
user15587401
3
votes
2 answers

Retrieve and compare the style attribute of an element periodically using using cypress

I have a time indicator that travels over a timescale, the indicator's style attribute value keeps on changing for every x milliseconds and I need to get, store and compare that the previously captured value is greater than the latest value. Initial…
Dhamo
  • 1,171
  • 3
  • 19
  • 41
3
votes
1 answer

TypeError: (0 , _native.createNavigatorFactory) is not a function

Trying to perform npm test on my React Native application, unit testing with Jest are working fine. However with react-test-renderer it complaining the following issue. FAIL __tests__/App-test.js ● Test suite failed to run TypeError: (0 ,…
Tommy Leong
  • 2,509
  • 6
  • 30
  • 54
3
votes
2 answers

Run all assertions of a test in Cypress

I've a question regarding test structure. The docs clearly state to write tests with multiple assertions instead of multiple tests with single assertions. But if I want to test if multiple elements are visible the test will fail if the first element…
DarkMikey
  • 383
  • 1
  • 4
  • 24
3
votes
1 answer

How to access xcconfig variables from XCUITest code

I need to access an environment variable named ENV that is set in the xcconfig file for my main app target, but from inside my UI test target. After doing a ton of googling this is what I've tried: set the main xcconfig as the configuration for the…
rmp251
  • 5,018
  • 4
  • 34
  • 46
3
votes
0 answers

Android UI Testing, context.startactivity() does not work

I am constructing a Android UI test using UIAutomator, hope to start the target app to be test and do some test actions on the UI. But when I use intent to start the app, it does not work (ie. it does not launch the target app on my real device, but…
3
votes
1 answer

Full screen not working when npx testcafe 'chrome --start-fullscreen' is defined in package.json file - testcafe

I am learning testcafe and I am a newbie here. According to testcafe docs the command npx testcafe 'chrome --start-fullscreen' should open full screen and run tests, which is doing the job perfectly. But when I defined the same command under…
3
votes
1 answer

How do I test Android notifications in Espresso

I have read the following SO posts but my questions is completely different. Testing Notifications in Android We use custom Android layouts to construct our notifications. This is what our Android notifications look like when they are rendered. I…
Kartik
  • 2,541
  • 2
  • 37
  • 59
3
votes
2 answers

Azure DevOps Git UI Automation same repo or seperate

I am working on setting up Azure DevOps Git Repo, Build and Release pipelines. We have separate team members responsible for development of application and separate responsible for UI test automation. My question is should I have a) one repo for…
Farukh
  • 2,173
  • 2
  • 23
  • 38
3
votes
1 answer

Writing UI tests using Espresso for APK without source code

I am trying to write UI tests using Espresso for an APK but I don't have the source code. I am trying to init the ActivityTestRule using classpath. I followed this article private static final String CLASSNAME =…