android-espresso Questions
1
In our code, we are using an external SDK to log in users (Auth0).
This SDK opens a WebView using intent with ACTION_VIEW.
I was trying to re-write some automation tests we had in place (we used na...
Parmesan asked 16/3, 2023 at 15:3
4
Solved
I am using Espresso for Instrumented Test but got this error on the Stack Trace:
The error being caused by a missing class as shown below:
Caused by: java.lang.ClassNotFoundException: Didn't find ...
Encincture asked 2/4, 2021 at 6:2
9
I'm working now in my functional tests and in one of them I have to test that a toast message is NOT shown. Considering this is the code I'm using to check if the toast message is shown (this code ...
Beef asked 27/4, 2015 at 12:46
3
Solved
I have been using Espresso to carry out automated UI testing with an Android app. (I have been trying to find a resolution to the issue whilst at home from work, so I don’t have the exact examples ...
Camper asked 11/1, 2015 at 17:40
5
Solved
With Espresso I try to test sending an Activity to background, with the Home button and then getting it up in the foreground again to make some checks:
@EspressoTest
public void test() {
onSomeV...
Depolarize asked 25/4, 2014 at 12:33
1
I have bdd-test for my app , I use compose and espresso, and I have this error :
java.lang.IllegalStateException: No compose hierarchies found in the app. Possible reasons include: (1) the Activity...
Dionnadionne asked 28/9, 2023 at 6:59
5
Solved
I'm trying to write an espresso function to match the first element espresso finds according to my function, even when multiple matching items are found.
Ex:
I have a list view with cells which ...
Thumbtack asked 3/9, 2015 at 23:48
4
Based on this documentation - https://developer.android.com/studio/test/command-line.html#AMOptionsSyntax it is possible to get code coverage results back from Firebase lab. Some folks in #test-lab...
Powerboat asked 21/11, 2016 at 17:42
6
Solved
I have a SearchView in my ActionBar that is inflated from XML
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
androi...
Tchao asked 24/7, 2014 at 7:19
6
I am trying to use gradlew cAT command to perform the connected android tests with my android phone. But i get the below Error log and it cannot install the app.
The App gets installed if adb com...
Enunciate asked 15/9, 2016 at 19:30
8
Solved
I'm setting up Android app structure with Gradle and Android Studio and Espresso UI testing for a project.
No matter what I try, the androidTest folder never appears in AndroidStudio's project str...
Picker asked 17/5, 2015 at 22:23
5
Solved
If I have an "AppCompatTextView" element that I can access by:
onView(withId(R.id.allergies_text))
From Layout Inspector:
Is there a way I can access the text of the element in Android Studio...
Sandiesandifer asked 9/8, 2017 at 17:22
7
Solved
When I adding implementation 'com.google.firebase:firebase-perf-ktx:19.1.0' I cannot start espresso instrumented tests ("app" scheme building ok). When I trying to start Espresso test, I ...
Isocracy asked 11/2, 2021 at 12:24
16
I'm trying to run a local unit test that depends on the context, and was following this guide: https://developer.android.com/training/testing/unit-testing/local-unit-tests#kotlin and I set up my pr...
Blades asked 3/12, 2018 at 14:29
5
Solved
I have enabled the home button to return to the previous view. Simply, doing this:
getActionBar().setDisplayHomeAsUpEnabled(true);
I'm using the last version of com.android.support:appcompat-v7:2...
Cower asked 17/12, 2014 at 14:36
6
I have a Fragment that I want to test. I created a test Activity to which I add this Fragment and run some Espresso tests.
However, Espresso does not find any of the views inside the Fragment. It d...
Lemures asked 18/2, 2016 at 2:2
1
I am trying to get coverage report from our test suite which needs to run with Android Test Orchestrator.
There is a fixed issue which references another fixed issue.
Following their suggestion I h...
Muldrow asked 7/9, 2020 at 6:7
7
This is not a duplicate question.
I have already looked at similar questions. I have added the questions I have referred to at the last.
My problem is that the test executes, but I have to open the...
Harrington asked 26/7, 2021 at 18:0
6
Solved
TypeText doesn't seem to work with SearchView.
onView(withId(R.id.yt_search_box))
.perform(typeText("how is the weather?"));
gives the error:
Error performing 'type text(how is the weather?)...
Jentoft asked 30/12, 2017 at 19:10
4
Solved
I have a PinCodeView that extends LinearLayout. I have following code in my init() method. DigitEditText extends EditText and just accepts one digit. This view will be used to receive confirmation ...
Criollo asked 27/2, 2016 at 20:50
2
I have a MaterialDatePicker dialog, and I want to write an Espresso test that selects a date. Unfortunately, I can't use PickerActions for this. I'm looking for something similar to this:
onView(wi...
Paragon asked 29/7, 2021 at 2:18
3
Solved
When I run my UI tests, they work perfectly fine and I can see tests are passed through logs. But Status of the Tests is never updated on Android Studio's panel.
Did anyone experience the same prob...
Marine asked 15/3, 2022 at 10:5
11
Solved
Having gridView which has some images. The gridView's cell comes out from same predefined layout, which has same id and desc.
R.id.item_image == 2131493330
onView(withId(is(R.id.item_image)))....
Orfurd asked 31/3, 2015 at 21:4
3
I recently discovered the property testOptions.animationsDisabled in the Android Gradle plugin.
I was hoping it would be helpful to disable the animations on my devices when executing UI tests wit...
Pankhurst asked 18/4, 2017 at 13:50
7
Solved
I have two Fragments, one being a home fragment in my graph. The User will be navigated to the second fragment upon clicking a button. It works as expected by navigating the user to the second frag...
Zamudio asked 4/11, 2020 at 18:48
1 Next >
© 2022 - 2025 — McMap. All rights reserved.