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
337
votes
6 answers

What are fixtures in programming?

I have heard of this term many times (in the context of programming) but couldn't find any explanation of what it meant. Any good articles or explanations?
Matjaz Muhic
  • 5,328
  • 2
  • 16
  • 34
55
votes
9 answers

How to access launchEnvironment and launchArguments set in XCUIApplication, running UI tests in XCode?

I've tried setting attributes in the XCUIApplication instance, in my UI Tests setUp() let app = XCUIApplication() app.launchEnvironment = ["testenv" : "testenvValue"] app.launchArguments = ["anArgument"] app.launch() in didFinishLaunch I've tried…
bogen
  • 9,954
  • 9
  • 50
  • 89
40
votes
1 answer

Testing ViewPager with Espresso. How perfom action to a button of an Item?

I have a ViewPager whith items containing only a picture and a button. I can't successfully interact with the UI of an item (Page) because, except the displayed picture, there is nothing to differentiate (from UI point of view) all items of the…
damson
  • 2,635
  • 3
  • 21
  • 29
35
votes
7 answers

Click on not fully visible imageButton with Espresso

I have a custom ImageButton that is not fully visible, by design, so when I perform a click action I get this error: android.support.test.espresso.PerformException: Error performing 'single click' on view 'with id:…
HowieH
  • 2,612
  • 2
  • 23
  • 26
34
votes
6 answers

android espresso login once before running tests

I've been trying to cover my Android app with tests and have started using espresso recently. Pretty impressed with it so far. However most of my app's functionality requires that users are logged in. And since all tests are independent, this…
source.rar
  • 8,002
  • 10
  • 50
  • 82
33
votes
7 answers

Testing if an element is visible with Xcode 7 UITest

I want to verify if an element is visible or not depending on its .hidden property but I don't find a valid way to do that using the new Xcode 7 UI test stuff. I've tried with myelement.exists and myelement.hittable but they doesn't seems to work…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
33
votes
10 answers

How to detect whether android app is running UI test with Espresso

I am writing some Espresso tests for Android. I am running in the the following problem: In order for a certain test case to run properly, I need to disable some features in the app. Therefore, in my app, I need to detect whether I am running…
Comtaler
  • 1,580
  • 1
  • 15
  • 26
29
votes
7 answers

How to rotate activity, I mean: screen orientation change using Espresso?

I have decided that one of the testing criteria for my application tests with Google's Espresso is: Test should maintain Activity state after screen orientation rotation How do I rotate the screen when using Espresso? I have tried the following…
FalconBot
  • 419
  • 1
  • 4
  • 12
25
votes
4 answers

Espresso test error: AppNotIdleException

I turned off all animations on developer options. But I still get this exception when trying to click on one of the buttons. My app is indeed active and not idle entirely, but I can't change it. android.support.test.espresso.AppNotIdleException:…
user5174803
  • 261
  • 1
  • 3
  • 5
25
votes
2 answers

UITesting, XCTest current ViewController Class

Simple problem. I got button which perform segue to next view controller. I want to write UI XCTest to tell me did it open view controller i wanted.
Dejan Zuza
  • 359
  • 1
  • 6
  • 14
25
votes
1 answer

Connecting external framework to UI unit testing target, iOS

So, i have already existing project at my hands and i’m trying to create some UI tests by using this new fancy UI Testing Bundle provided by apple. The problem is that test target doesn't have access to any external framework (and i need to do some…
BigSzu
  • 271
  • 2
  • 8
24
votes
2 answers

Testing endless scrolling RecyclerView with Espresso and RxJava

I have RecyclerView with endless scrolling. So when user reach last - 2 position in list, I call server for more data and during call in progress, I add one more item - progress one. Now, I'm trying to write decent UI test with Espresso which will…
Divers
  • 9,531
  • 7
  • 45
  • 88
24
votes
4 answers

Android Espresso error on button click

I'm trying to write some UI tests for an Android APP with the espresso framework. For now I'm just checking if all the elements are present on the splash screen and then I'm trying to click the login button. When the the button is clicked the test…
PeachMode
  • 397
  • 1
  • 4
  • 15
24
votes
5 answers

Is there a way to find if the XCUIElement has focus or not?

One of my screen has multiple text fields, I can land to this screen from different other screens. In each case I am making one or another text field as first responder. I am not able to write test to determine whether the desired textField has…
Sandy
  • 3,021
  • 1
  • 21
  • 29
24
votes
4 answers

How do I reset the application data after each test with Xcode 7 UI Testing?

Apple introduced in Xcode 7 new UI Testing but I have a struggle whenever the tests launches the app, it starts with data that the application had before. It means tests cannot be independent and can be influenced by other tests. It is not possible…
Tomáš Linhart
  • 13,509
  • 5
  • 51
  • 54
1
2 3
55 56