ui-testing Questions

2

Solved

In build method, MediaQuery.of(context).orientation equals Orientation.landscape. How to make it into portrait. The test widget is wrap under MaterialApp.
Obsessive asked 3/5, 2018 at 15:8

1

In web I usually use PerfectPixel chrome extension. It allows just cover page with uploaded design, inverse colors, etc. Any possible ways to test design in React Native?
Handwork asked 16/11, 2016 at 19:48

2

Solved

I am trying to create UI test for my controller. I fill textfields and tap button and now I want to wait for dialog to appear and when it apears I want to tap Ok button and check what controller is...
Thais asked 30/3, 2016 at 16:26

3

Solved

I am testing an application which loads a powerpoint (.ppt or .pptx) file insert it. Application gives same look an feel like powerpoint with some extra setting when the file is loaded inside the a...
Pronation asked 13/3, 2014 at 5:29

11

Solved

I know similar questions have been posted, but from my investigating, there has not been a solution posted, at least not one that works. I have successfully run UI tests only from sample projects i...
Imprison asked 20/1, 2016 at 20:26

4

Solved

I want to UI test an Activity that uses Jetpack Compose. The docs provide some information on how to test such a screen with two variants: @get:Rule val composeTestRule = createComposeRule() if I...
Epp asked 6/7, 2021 at 9:22

3

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 bui...
Superstratum asked 31/3, 2016 at 1:26

4

Solved

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 fakerj...
Grubbs asked 13/10, 2019 at 2:10

5

How can I suppress or automatically dismiss the client certificate selection dialog with selenium (chrome driver)? I can't use this certificate, because it is stored on a chip card and I would h...

3

Solved

In Jetpack compose I have a TextField and I'm trying to write Espresso UI tests. I didn't find how I can enter text in the TextField, any ideas, please? TextField( value = textState.value, modifi...

9

I've tried setting attributes in the XCUIApplication instance, in my UI Tests setUp() let app = XCUIApplication() app.launchEnvironment = ["testenv" : "testenvValue"] app.launchArguments = ["anArg...
Meaganmeager asked 7/10, 2015 at 9:11

10

Solved

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...
Samara asked 16/2, 2015 at 21:8

4

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. ...
Latria asked 9/8, 2016 at 16:33

7

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 s...
Inactivate asked 21/5, 2016 at 11:15

4

Solved

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 lo...
Adhere asked 29/12, 2015 at 12:5

3

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 poi...
Proposal asked 31/7, 2019 at 15:59

2

Solved

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...
Semiramis asked 1/12, 2019 at 18:44

2

Solved

Here is the problem when I run my UI test. But the ExampleInstrumentedTest is working. This is my test file, I already comment out everything, leaving an empty function @RunWith(AndroidJUnit4Clas...
Lenient asked 29/8, 2021 at 20:57

1

Solved

I'm trying to test how a buttonClick would change the UI. The test is setup like this: composeRule.setContent { var i by remember { mutableStateOf(0) } Button(modifier = Modifier.testTag("TE...
Battleship asked 31/3, 2022 at 15:22

7

Solved

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 an...
Carducci asked 20/10, 2015 at 21:28

0

I want to test the following very common usecase as an Instrumented Test in Android: When clicking a button a fetch() function is called in my ViewModel This function tells the view to show a load...
Ambidexterity asked 15/2, 2022 at 11:15

3

Solved

I've iOS app that needs some privileges (GPS, Push notifications). When app starts for a first time iOS asks user if they're ok with granting those permissions to application. I've written some UIT...
Ceto asked 7/6, 2016 at 7:26

6

I'm trying to add and run UI Automation tests with Xcode 7 on an older project. Here's what I did: Added a new UI Testing target Changed the compiler version of that target to Default compiler (A...
Statis asked 20/9, 2015 at 9:57

6

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 ...
Litre asked 1/11, 2015 at 14:52

1

Solved

I am going to test fragment with Espresso then i want to mock viewmodels and members. In my viewModel i have a void function like this : fun getLoginConfig() { viewModelScope.launchApiWith(_loginC...
Human asked 2/11, 2021 at 9:35

© 2022 - 2025 — McMap. All rights reserved.