Questions tagged [uitest]

249 questions
4
votes
0 answers

iOS UI Testing with device camera

I have a suite of UITests and one test needs to use the camera. It is very flaky as if testing on device, the camera must be able to focus and get a picture the first time. It is also frustrating as I have to skip the test when running on Fastlane…
Phil Hudson
  • 3,819
  • 8
  • 35
  • 59
4
votes
1 answer

How to check the color of a button in UITest

I'm writing a test using Xamarin.UITest and I want to examine the coloor of a specific UI button. From the Repl I can grab the button like this: >>> app.Query(c => c.Button()).First() Query for Button() gave 1 results. { Id => "buttonGo", …
Adam Cooper
  • 8,077
  • 2
  • 33
  • 51
4
votes
1 answer

how to write UI test to test whether image existing when click the first cell in an UITableView?

There is an UITableView in my storyboard. It contains 5 Table view cells. When I click the first cell, it will go to the second UIView and show the corresponding images. How could I code the UITest part to test whether the image show up when I click…
beasone
  • 1,073
  • 1
  • 14
  • 32
4
votes
1 answer

swift in UI test(test the num of cells in UITable View)

I am very new to UI test. I have an UITableView in my storyboard and it contains some cells. Update: I want to assert that the num of cells in UITableView when the app launches will be more than 0. But I don't know how to code this part.Using…
beasone
  • 1,073
  • 1
  • 14
  • 32
4
votes
2 answers

How to test everything in Xamarin

So i've recently started using Xamarin.UITest in my mobile application. Its great for testing the UI, navigation etc. However im slightly confused as to how the best way is to test all the other parts of the app i.e the database, web connection,…
3
votes
2 answers

Jetpack Compose UI Test: How to find Node with specific text value if its shown twice

I try to create a ui-test for my android app that is build completly by jetpack compose. I've got e screen where a certain value is shown twice, once as a simple text and second as a label of a button. How am I able to select the button using that…
Thomas Cirksena
  • 717
  • 2
  • 8
  • 28
3
votes
2 answers

iOS best practice to test push notifcations (UI Test)

I want to UI test my app with push notifications and maybe some of you have found a best practice. There are a lot tutorials and questions but I wasn't able to find a satisfying answer. Start test Send push notifcation Tap push notifcation Do…
Godlike
  • 1,621
  • 2
  • 20
  • 33
3
votes
1 answer

How to locate an app to share to in iOS13 share sheet via UI test?

I am using a UI test to check sharing a file to a target app. For that, I am using multi-app UI testing as follows: the target app should become active when sharing a given file to it a helper app UITestsHelperis a simple document-based app…
atineoSE
  • 3,597
  • 4
  • 27
  • 31
3
votes
1 answer

XCUITest for Multiple Text fields Keyboard is not hiding or the keyboard is not being focused on second text field

Im working on with XCUITest, where in its a simple screen, having just username textField, password textField and a Login Button. I could able assert like on tap of Login button, both username textField and Password textField is non empty. But what…
Mahesh S
  • 309
  • 1
  • 11
3
votes
0 answers

How to properly manage all the checks passed from iOS UITest arguments in the project?

1, how to properly manage all the checks from the project arguments in the project? do we spam isUITest in project all over the places? 2, how to mock the iOS IAP receipt fresh result from UITest? As you know the standard way of detecting UITest…
Tony Lin
  • 922
  • 6
  • 25
3
votes
3 answers

Xcode UI Test How to handle notification permissions generated by UNUserNotificationCenter

In my app, I ask for notification permissions like this: UNUserNotificationCenter.current().requestAuthorization(options:[.badge, .alert, .sound]) { (granted, error) in if granted { DispatchQueue.main.async { …
Shivam Pokhriyal
  • 479
  • 4
  • 14
3
votes
1 answer

Cancelling iOS permission dialog with Xamarin UITEST and App Center

Our app uses Push Notifications, and so when it is first installed on an iOS device, the OS displays a permissions dialog. When running tests remotely in Microsoft App Center, this dialog is preventing progress through to the main screen. How can we…
James Lavery
  • 920
  • 4
  • 25
3
votes
1 answer

How to close the system alert in iOS10 simulator, Xcode 9, UITests

I have the issue that I could not close the notification, location, photo access permission alert in iOS10 simulator, Xcode 9, UITests, but it works well in iOS11 simulator. I found the thread that discuss about the similar issue, but there is not…
Alex Cheng
  • 829
  • 8
  • 20
3
votes
2 answers

Swift UITest - No match found for textField with accessibility identifier

Trying to create a UITest for entering an email address/password into text fields and then hitting a login button. Using Xcode. I watch the UITest navigate to the proper page, but it does not detect the text fields. I made sure that both text fields…
pruette
  • 53
  • 1
  • 7
3
votes
5 answers

Swift UI test, how to check if a cell has an imageview

In UI test, I can get the first cell using this code: let app = XCUIApplication() app.launch() let tablesQuery = app.tables let cell = tablesQuery.children(matching:.any).element(boundBy: 0) How to check if that cell contains a imageview ?
Kelvin Tan
  • 982
  • 1
  • 12
  • 33
1 2
3
16 17