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
0 answers

How to get title of XCUIElement of type XCUIElementTypeButton

I have a button with dynamic title text, set up as follows: button.label = @"Chosen Date Button"; [button setTitle:stringOfDateChosenByUser forState:UIControlStateNormal]; In my UI test, I want to verify this title text. I managed to…
Yoga
  • 1,186
  • 1
  • 13
  • 24
4
votes
2 answers

Xcode UI Testing allow system alerts series

I have problem, if i try allow series system alert, work only one time, and next alert not "allowing" I googling more time, and know about that post: (Xcode 7 UI Testing: how to dismiss a series of system alerts in code) Nothing.. not work. Here my…
MeGaPk
  • 143
  • 2
  • 10
4
votes
1 answer

UI Testing xCode 7.3 - Cannot print variables (i.e 'po app') in the console: (could not build Objective-C module 'Bolts')

I have UI testing project set up and was working perfectly in xCode 7.2. Since I upgraded to xCode 7.3 I cannot print any variables in the console. I set breakpoints in both Application (main project) and UI Test, 'po' command works in the main…
May
  • 51
  • 3
4
votes
0 answers

Android Marshmallow: Revoking Permissions and UI testing

When revoking a permission (e.g: Locations) from an App in Android Marshmallow, the app process is terminated. Is there any way to handle this for UI tests that wants to test different cases (permissions enabled/disabled)? Attempting to use…
4
votes
4 answers

Is it possible to dismiss System Alerts using EarlGrey (iOS UI Testing)?

I'm beginning to experiment with EarlGrey a little bit, having done UI Testing using the XCUITest for some months now. I'm running into the classic problem of being unable to dismiss system alerts, which is strange as it looks as though Google…
Jonathan Chen
  • 716
  • 8
  • 19
4
votes
3 answers

Selenium: Test if text is fully visible

Is there a way to check with Selenium if a text is fully visible? Let's say I have the text lorum ipsum dolor sit amet and due to a bad css it reads only lorem ips on the page, the rest is under a wrongly placed div. Is there a way to assert…
d135-1r43
  • 2,485
  • 1
  • 25
  • 33
4
votes
2 answers

Application State / Test Fixtures with Xcode UI Tests

A pretty common problem with any kind of integration test is getting the unit under test into a known state -- the state that sets up well for the test you want to perform. With a unit test, there's usually not much state, and the only issue is in…
Geoffrey Wiseman
  • 5,459
  • 3
  • 34
  • 52
4
votes
0 answers

Espresso: Wait for activity to finish background task after pressBack()

I've looking around for a while about espresso testing and specially about custom idling resources (I've implemented a couple working cases) but I have come across a scenario I can't seem to solve. I have an Espresso SearchUITest class that starts…
JorgeMuci
  • 658
  • 9
  • 22
4
votes
1 answer

Eclipse RCPTT Hanging in Jenkins

I am trying to automate my Eclipse UI testing using Jenkins. I have a Jenkins Windows slave where I have installed Eclipse RCPTT IDE. In Jenkins I am using this script with my information. I have also narrowed it down to just run java -jar…
Chris Bolton
  • 2,162
  • 4
  • 36
  • 75
4
votes
1 answer

Unit testing never run after setup UI testing Xcode 7

I set up UI testing MyProjectUITests in Xcode 7 and I also added a new unit test in to target MyProjectTests. However, when I typed Command + U, it seems like Xcode always testing my project with UI Testing. Question: How could I choose to build…
Zigii Wong
  • 7,766
  • 8
  • 51
  • 79
4
votes
3 answers

XCUITest - How to simulate locking of the device

I am writing XCUITests for my app in Swift, and I was wondering if it's possible to simulate the locking and unlocking of a device. I've looked at XCUIApplication methods but there don't seem to be any that allow me to lock the device.
SalmonKiller
  • 2,183
  • 4
  • 27
  • 56
4
votes
1 answer

Xcode UI test manual snapshot

I want to manually take some snapshots from my applications using UI Tests intoduced in Xcode 7. By default, Xcode takes screenshots of every step and in result I got screenshots that was taken in the middle of transitions between view controllers.…
MichalMoskala
  • 887
  • 1
  • 12
  • 25
4
votes
1 answer

Execution failed for task 'app:prepareDebugAndroidTestDependencies'

I'm trying to build UI tests for my Android application in Android Studio. The problem is that I can't run them. I get the message: Execution failed for task 'app:prepareDebugAndroidTestDependencies' which I couldn't find what it's about. When I run…
4
votes
1 answer

Can't run Robotium on Android Studio with only APK

In the description of Robotium, it says it's able to test Android projects with just the APK. I am capable of doing this in Eclipse but I can't seem to do this in Android Studio. When taking the same code from Eclipse and using it in Android Studio,…
user3369427
  • 425
  • 6
  • 14
4
votes
3 answers

Espresso how to click on a ImageView placed in listview's first item?

I have a custom layout for listview, I want to click on a imageview placed in the list view item, overflow icon of the first item in the list view. I want to click on last imageview with id "rcOverflow" My layout,
Shivaraj Patil
  • 8,186
  • 4
  • 29
  • 56