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

Xamarin.UITesting NU1201 Error: Android 8.1 Is incompatible with .NETFramework 4.6.1

Have been having a little issue for the last couple of days now where I will create a new Xamarin Forms project on Visual Studio 2017 and add a Xamarin.UITest Cross-Platform Test Project for unit testing I recieve a series of NU1201 Errors when I…
Fakelzaman
  • 261
  • 2
  • 9
11
votes
1 answer

How to view app logging when ui testing

When running UI tests on my iOS app on our Jenkins CI slave, the UI is incorrect and my tests fail. Locally, the same UI is as expected and the tests pass. I haven't been able to figure this out and I cannot debug it as it is on a remote machine.…
Lyndsey Ferguson
  • 5,306
  • 1
  • 29
  • 46
11
votes
2 answers

Espresso - how to get current activity to test Fragments?

I have been playing around with Espresso tests for couple weeks now and I finally decided to start testing Fragments. Immediately I ran into a problem, how do I get current activity? My app uses data from login so I can't launch the activity with…
user3050720
  • 443
  • 2
  • 6
  • 14
11
votes
5 answers

How to test Dynamic Type (larger font sizes) in iOS Simulator

Changing Dynamic Type settings in iOS can be done manually (Settings > General > Accessibility > Larger Text). But this does not appear to work in the current Simulator (v9.3 at the time of writing), and doing so manually is not a solution where…
Clafou
  • 15,250
  • 7
  • 58
  • 89
11
votes
2 answers

Mock API Requests Xcode 7 Swift Automated UI Testing

Is there a way to mock requests when writing automated UI tests in Swift 2.0. As far as I am aware the UI tests should be independent of other functionality. Is there a way to mock the response from server requests in order to test the behaviour of…
Liam
  • 2,659
  • 1
  • 14
  • 16
11
votes
4 answers

Android Espresso and Linkify

I am writing some tests for my Android app based on Espresso. After clicking on a link inside a TextView (created with the Linkify class) I need to assert I am seeing the correct screen. I tried performing a click on the TextView that contains the…
argenkiwi
  • 2,134
  • 1
  • 23
  • 26
11
votes
3 answers

Android: Robotium vs android test framework

Everyone using Robotium for GUI testing. Can you tell me what Android native test framework cannot do that Robotium can do? As I know Robotium can be used as black box testing, so I do not need to know about application resources. What else?
Jim
  • 8,874
  • 16
  • 68
  • 125
10
votes
1 answer

What's the difference between a UI test and an E2E Test? And What's the benefits of each?

Our team is considering starting testing based on user scenarios. So, we are picking a E2E framework. Searching for UI test lead to the following: So, I found this this It says UI testing: user interface testing. In other words, you have to make…
c-an
  • 3,543
  • 5
  • 35
  • 82
10
votes
0 answers

Android P Preview breaks UiAutomator tests with API compatibility error

I am trying out Android P preview on Pixel device, and currently experiencing an issue with instrumentation tests written with UiAutomator framework. Whenever a button click is simulated with UiAutomator by following…
CoderSpinoza
  • 2,145
  • 23
  • 28
10
votes
1 answer

Change Simulator Location using Xcode's UITesting

Just wondering if it is possible to use UITesting in xcode to somehow code in custom locations for the simulator. We have an app that involves a number of location changes and would be great if we could automate the changes in location as part of…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
10
votes
1 answer

How to mock data in UITest on Xcode 7?

Someone has tried to include mock data with the new Xcode 7 UI tests? Have you used an specific framework? How have you managed targets?
damacri86
  • 295
  • 3
  • 13
10
votes
3 answers

Is Selenium testing worthwhile on mobile devices?

We've been planning to do UI testing of our web application using Selenium. We're now having second thoughts. From what I can tell, the webdrivers for Android and iOS devices don't use the actual browser that a user would use. Instead they use a…
JSwartzen
  • 255
  • 1
  • 4
  • 12
9
votes
3 answers

Add intent extras in compose UI test

I want to UI test an Activity that uses Jetpack Compose. The docs provide some information on how to test such a screen with two variants: @get:Rule val composeTestRule = createComposeRule() if I don't need the activity itself to run and want to…
fweigl
  • 21,278
  • 20
  • 114
  • 205
9
votes
1 answer

Android UI Tests with Storage Permissions in CI

I want to run UI tests and unit tests on a project in CI (Jenkins Pipeline). The UI tests requires images and video to be on the test device / emulator. In the UI tests I request permission for storage read/write access so I can dump a few assets…
Sababado
  • 2,524
  • 5
  • 33
  • 51
9
votes
2 answers

Can I run several iOS UI Tests in Parallel?

I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat. Now that Xcode supports multiple…
Bill
  • 44,502
  • 24
  • 122
  • 213