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

Swift UI Testing crashes when accessing enum rawValue

Xcode 7.3 Open Radar: rdar://25456632 In my app I have a string enum which I use to define some accessibility identifiers. For example enum AccessibilityIds:String { case ButtonFoo } I've built some UI tests where I want to search for controls.…
drekka
  • 20,957
  • 14
  • 79
  • 135
9
votes
2 answers

Xcode 7 UI Testing target locale and region settings

I'm trying to set the language and the region of my UI Testing target, and unfortunately it doesn't seem to work. I've tried both ways, first: Product | Scheme | Edit Scheme Run | Options Application Language: French Application Region:…
Zaphod
  • 6,758
  • 3
  • 40
  • 60
9
votes
3 answers

UI Tests + postNotificationName + never reaches observer + Xcode 7

I have UI Tests target for testing MyApp. To test specific MyApp conditions I need to post notifications from UI Test target to MyApp target. To post notification from UI Test target function I am using…
Ramis
  • 13,985
  • 7
  • 81
  • 100
9
votes
2 answers

Swift UITesting error: Invalid escape sequence in literal. \U201c

I am building an automation suite using Xcode 7 with swift. My app loads with the following Alert View: Allow "Light Alarm" to access your location while you use the app? When I record with UI Testing and click this alert I get the following…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
9
votes
2 answers

android espresso testing : empty test suite. no tests were found

I am running intelliJ idea 14.0.2 android development environment on windows and am trying to use the espresso UI testing framework to test my app.However when I press run for an androidTest configuration , I encounters the following : Testing…
cyc115
  • 635
  • 2
  • 14
  • 27
9
votes
2 answers

How to do automated UI testing of devexpress controls?

I want to do automated testing of DevExpress control. I have found some frameworks like guia, NUnitForm etc. but they all are for standard WPF controls. Is there any other framework which can help me to test DevExpress control?
Rudresh Bhatt
  • 1,935
  • 2
  • 23
  • 29
8
votes
2 answers

How to test interactions with menu when testing fragments with FragmentScenario

I'm trying to test a fragment using FragmentScenario. This fragment has its own menu. There is an add icon on the action bar and clicking on this menu item launches a child fragment from which user can add new items. So I'm trying to test this…
Oya Canli
  • 1,996
  • 1
  • 15
  • 27
8
votes
3 answers

How to use fakerjs in Cypress

I am trying to use fakerjs in my cypress tests to randomly generate fake data for my forms. I have tried exporting it in support/index.js which did not work. Is there any standard way to add fakerjs to all cypress specs instead of adding it in every…
user1614862
  • 3,701
  • 7
  • 29
  • 46
8
votes
3 answers

Program has more than one entry point defined? CS0017 Problem with main()?

When I try an run the code below in visual studio I get the following error : "Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point. " I've tried finding other entry points but am not…
md22
  • 81
  • 1
  • 1
  • 3
8
votes
2 answers

Espresso click on specific words of text

In my espresso test I want to tap on a certain part of a text element with the idSwitchTextView . The full text reads " Are you a member? Login with email" When you click on the login with email it switches the view of the page. When I use…
Billy Boyo
  • 819
  • 2
  • 12
  • 22
8
votes
2 answers

Check the position of the XCUIElement on screen while testing iOS Application using XCTest

I am testing an iOS Application and currently I am checking the existence of a particular XCUIElement using isHittable. I wanted to know if we can also check the position of the XCUIElement on the view. For instance, if we have a button in the…
Kushal Jogi
  • 265
  • 5
  • 15
8
votes
0 answers

Could not launch Intent within 45 seconds - robotium

I'm facing a big problem which I've been trying to solve for a few days. I am trying to run a test using robotium but when I call getActivity() on the setup method, a RuntimeException exception is thrown. java.lang.RuntimeException: Could not…
Benjo
  • 133
  • 1
  • 9
8
votes
7 answers

How to set time to MaterialDateTimePicker with Espresso

Im trying to create simple UI test using Espresso to set a date to newly created item. Project is using https://github.com/wdullaer/MaterialDateTimePicker, but it shows dialog fragment with complex UI and nothing to hold on to. I would like to…
Lubos Horacek
  • 1,562
  • 10
  • 28
8
votes
2 answers

Espresso Matcher for Nested RecyclerView

So here's a breakdown of my hierarchy: RecyclerView --> LinearLayout --> RecyclerView --> FrameLayout -> FrameLayout Here's a screenshot: I would like to be able to verify the FrameLayout with the text is displayed. This what I have tried so…
brwngrldev
  • 3,664
  • 3
  • 24
  • 45
8
votes
2 answers

espresso dynamic spinner testing

I am trying to test a dynamically generated Spinner. I am able to click on the spinner but then I need to select an option from the list with a given text that is shown (I found out from hierarchyviewer that a PopupWindow is shown but am unable to…