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

java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier

Android Studio 3.3 I want to use WireMock in my Espresso tests. build.gradle: buildscript { ext.KOTLIN_VERSION = '1.3.21' ext.ESPRESSO_VERSION = '3.2.0-alpha02' repositories { google() jcenter() } dependencies { …
Alexei
  • 14,350
  • 37
  • 121
  • 240
4
votes
1 answer

How to test if a fragment is visible with Espresso

I wrote a very simple Activity with a Button. When the button is clicked, I will start a new Fragment. Now I want to test this logic in my Espresso UI Test. So I wrote this UI Test for my Activity @RunWith(AndroidJUnit4::class) @LargeTest class…
dudi
  • 5,523
  • 4
  • 28
  • 57
4
votes
1 answer

Virtual (fake) primary monitor in Windows 10?

I have a bunch of automated UI tests that currently require a physical monitor to run. Can I somehow create a virtual monitor in Windows 10 that functions like a real monitor to the OS? I want to run the UI tests in a remote cloud environment…
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
4
votes
0 answers

How does Xcode server run tests in release mode without Enable Testability?

When using Xcode server to execute UI Tests, the bot has a setting to 'override' the configuration to Release mode. This was handy as tests would be executed on release build. Now when I am trying to run tests on TeamCity or CLI and pass the…
Alexandre G
  • 1,655
  • 20
  • 30
4
votes
0 answers

Running espresso test case using Bitbucket Pipelines

I am new to Bitbucket Pipelines and currently struggling with running test cases on that. I have an Android build which is now running correctly on Pipelines. But I am unable to find a way to run my espresso test case on it. Anyone aware about how…
4
votes
0 answers

Android Espresso UI Test with mocked Retrofit API

I'm creating UI Tests for my Android app using Espresso. I have a login screen which contains just two Fields (user and password) and a Button. I'm using Retrofit but I want to mock the API response so I've created a RetrofitMockClient. For example,…
Ale
  • 2,282
  • 5
  • 38
  • 67
4
votes
1 answer

Failed to get main window after 30 retries: kAXErrorServerNotFound

I have a suite of 26 tests. Sometimes some tests, any test, will fail with the following error: Test Case ... t = 0.00s Start Test at 2017-06-21 13:41:15.265 t = 0.00s Set Up t = 0.11s Launch com.company.MyApp …
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
4
votes
1 answer

TestCafe DragNDrop Not Working When DropZone Appears After DragStart

I recently started to use TestCafe and I'm trying to utilize t.dragToElement(selector, destinationSelector) method. The problem is, the dropzone does not appear until I start dragging. It is hidden using display: none and appears onDragStart.…
Bugs Bunny
  • 2,496
  • 1
  • 26
  • 32
4
votes
1 answer

Espresso Nested Recycler Views UI testing

I have a Horizontal RecyclerView inside a vertical RecyclerView. I'm using this code I found on other question: onView(allOf(isDescendantOfA(withRecyclerView(R.id.parentVerticalRecyclerView).atPosition(parentPosition)), …
4
votes
1 answer

Espresso can't find a view: NoMatchingViewException

In my app,I have two fragments attached in an activity. Each fragment contains different views. The first one has two edit text fields and two buttons,where the user can login or register. So now I want to apply some Espresso testing.…
Theo
  • 3,099
  • 12
  • 53
  • 94
4
votes
1 answer

How to start ASP.NET Core Web API site for testing using Selenium

I am trying to write Automated UI Tests for my ASP.NET Core Web Api solution using selenium. The main question I have - is there any solution to to run my site for Selenium web driver? When I debug test for home controller, site is not started, and…
Alex
  • 842
  • 11
  • 33
4
votes
1 answer

Debugging the application while running UI tests

So I start an UI test in XCode, during which the an error occurs or some exeption is thrown. I start debugging and trying to understand what the problem is, but then the UI test fails after some time out with this error message: Assertion Failure:…
Senad
  • 166
  • 1
  • 14
4
votes
2 answers

Espresso test back button while AsyncTask is running

I'm writing UI tests for my application using Espresso. I'd like to test the fact that if I click the back button while a server request is in progress the app must remain where it is. It seems not to be possible due to the espresso's architecture…
Apperside
  • 3,542
  • 2
  • 38
  • 65
4
votes
2 answers

Xcode UI testing - Uiviews added with addSubview are completely invisible to the UI tests

I've been giving a try to the new UI tests on XCode 7.3 and I've found what it seems a bug to me. The problem is that views added through the "addSubview" method seems to be completely invisibles to the UI test system. I have this view: And this…
Delfín
  • 109
  • 1
  • 6
4
votes
1 answer

How do I stop my Xamarin.UITest from running Tests twice?

I am writing some UITests using the Xamarin.UITest library. but every test I run always runs twice regardless of whether it has passed or failed? My app configuration looks like this: app = ConfigureApp.Android.ApkFile(PathToAPK).WaitTimes(new…
JKennedy
  • 18,150
  • 17
  • 114
  • 198