Questions tagged [espresso]

Espresso is a library which is used to write Android UI tests. Known also as Google's Testing Tools For Android

0
votes
1answer
22 views

how i can click on specify recyclerview on androidx.test.espresso?

i have problem to click on specify recylcer view here my code, it still errorEspresso.onView(withId(R.id.recyclerLastMatchlist)).perform(RecyclerViewActions.actionOnItemAtPosition<...
0
votes
0answers
20 views

Espresso click on drawable

I am trying to click on a drawable which is inside a RecyclerView.Steps.1. Swipe Left to open drawable/delete icon.2. Click on the the drawableI am able to swipe on the recyclerView item, but i ...
0
votes
0answers
14 views

Trigger Host from Android device

I run my android test using Espresso framework. On one point of the running test, I need to trigger an audio file playback on host PC(to test speech recognition). Is there a way in Android, Espresso, ...
1
vote
1answer
48 views

Espresso, how to check an item from RecyclerView consists of certain layout

Hi my grid recycler view's 0th item should be always camera andother items should be always video contents.To check 0th item has layout of com.xx.yy.R.layout.item_cameraI tried like this:...
2
votes
0answers
36 views

Espresso Androidx compatable with v7 recyclerview?

My app's Reyclerview is "android.support.v7.widget.RecyclerView"And I use androidx's espresso.I added dependencies to my gradle like below:androidTestImplementation 'androidx.annotation:...
0
votes
0answers
112 views

No instrumentation registered! Must run under a registering instrumentation

I can't run test on my device and getting error No instrumentation registered! Must run under a registering instrumentation. Here is my test class:package com.pecode.itrustyou.ui.login;import ...
0
votes
0answers
22 views

Passing parameters into Espresso tests for validation

I am writing automated UI tests for Android that are being used to run smoke tests against a development server. My desired workflow is as follows:1) Run setup scripts (outside of Espresso, or ...
4
votes
2answers
118 views

“Attempt to read from field 'int android.content.pm.ApplicationInfo.targetSdkVersion' on a null object reference” exception

While running Espresso tests using Mockito, I am currently having this issue that "Attempt to read from the field 'int android.content.pm.ApplicationInfo.targetSdkVersion' on a null object reference" ...
0
votes
0answers
34 views

Disabling system animations make UI test fail Espresso?

My device: Samsung S8The documentation of Espresso setup instructions say thatTo avoid flakiness, we highly recommend that you turn off system animations on the virtual or physical devices used ...
0
votes
0answers
13 views

Android Testbutler IllegalStateException: ButlerService is not started

I recently added testbutler to my project, and after following their installation guide the test just crashes due to it not being started yet?build.gradle: testInstrumentationRunner "com....
0
votes
1answer
23 views

Android: Why Espresso won't run on compileSdkVersion 27?

I started testing my app and had some errors, but managed to fix them and run the test successfully. Question is: Why this Espresso test won't run on compileSdkVersion 27 ? I tried "old" ...
0
votes
1answer
36 views

After including 'espresso-contrib:3.1.0': Execution failed for task ':app:processDebugAndroidTestResources'

After including the line (in order to use RecyclerViewActions for testing with Espresso):androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0'I get the error: AAPT2 error: ...
0
votes
1answer
42 views

Espresso Doesn't Match Drawable Inside RecyclerView

I'm trying to check whether the items within a RecyclerView contain the expected image drawables. I've tried to check for descendants but get an error to do with getting the id for the image view ...
0
votes
1answer
20 views

Testing notification between 2 apps

is there any way of UI testing a notification sent between 2 apps with espresso, UIAutomator or other framework?This would include testing the third party provider.Any experience?
0
votes
1answer
38 views

Unable to click delete button, multiple view

Unabel to click on delete button, getting error:android.support.test.espresso.AmbiguousViewMatcherException: '(with id: cit:id/delete_button and has parent matching: with id: cit:id/count_and_delete ...
2
votes
0answers
42 views

Android Studio Espresso Test Recorder Slow

I am trying to create some Espresso UI tests using Android Studio's inbuilt Espresso Test Recorder. The issue is: when I type it is very slow to appear on screen.Anything text entry/keyboard based ...
0
votes
1answer
31 views

Espresso : How to click on an item at position 2 in AdapterView

I am new to Espresso and Mobile Testing, and I am facing a challenge. I have to search for a contact in App and click on contact displayed at second position.I checked many posts which were similar ...
0
votes
0answers
28 views

Espresso Assert Text Does Match But Still Fails

I am using Espresso to create a test. The user goes to register screen, inputs details, successfully registers user. User then goes to login screen, inputs username and goes to dashboard. Dashboard ...
0
votes
0answers
22 views

E2E tests with Espresso: Keep application open after finishing a @Test/properly structuring larger test cases

What I doI want to build a "happy path"-style end-to-end test for my Android application. It involves a number of steps that need to be performed:Swipe through multiple slides of an on-boarding ...
0
votes
2answers
39 views

Espresso test framework matches(isDisplayed()) is throw error

I am very new to Espresso testing. I am trying the following test.1) Textview is showing or not2) Textview value is correct3) perform button click.I am using following codes.@Testpublic ...
0
votes
0answers
47 views

Could not launch intent within 45 seconds error on Espresso recorded test

I have an android app and i want to run instrumented tests recording with Espresso. I have recorded the test and Epresso has generated the test class for me. My app starts with a SplashScreen class ...
2
votes
3answers
103 views

Espresso - Check RecyclerView items are ordered correctly

How to go about checking whether RecyclerView items are displayed in the correct order using Espresso? I'm trying to test it checking it by the text for the title of each element. When I try this ...
0
votes
1answer
60 views

Press delete (backspace) in EditText with espresso

I writing a test case in espresso that requires performing a delete (backspace). The code I came up is like thisonView(withId(R.id.testNumberEditText)).perform(replaceText("123"))...
0
votes
1answer
24 views

Android, Espresso - Activity stops before whole test is finished when run as part of :app:connectedAndroidTest (runs fine in isolation)

I apologise if this is a bit too vague here, but I'm not allowed to post my whole actual code. All I can say is I have a problem running this test as a part of http://stackoverflow.com/gradlew connectedAndroidTest@RunWith(...
0
votes
0answers
23 views

How to point same resource id while writing unit test cases in android

I have same resource id activity_content in two different layout files. I am writing unit test cases and need to point one of the id in my @Test function.Would need some help as how to point to ...
4
votes
0answers
35 views

Testing interaction with SpeechRecognizer using Espresso-Intents

I am adding instrumentation testing to an application. I want to test an interaction around speech recognition: the user clicks on a button (R.id.buttonVoice), displaying a DialogFragment for ...
0
votes
0answers
17 views

Espresso and XCUItest are efficient for developers? or testers as well can harness the power of these tools?

I am working on Mobile App testing and we use Espresso and XCUItest for testing functional flows. We simulate pretty every user action on the App and can test functional flows with these tools. ...
0
votes
0answers
8 views

On clicking keywords in Search option, related items would be displayed please suggest me a test case for this in Espresso

enter image description hereI have a Search Activity which displays items in List view, i have to write a test case in Espresso such that on entering keywords of an item in Search bar, related items ...
1
vote
1answer
103 views

How to get the values from the RecyclerView using Espresso

I want to get the all values from the RecyclerView using Espresso. I am able to get only the visible values from the recyclerView. But not able to get the values which are visible when scrolling.Ex. ...
0
votes
0answers
94 views

Proguard issue with instrumentation tests

I'm close to the dex limit due to using Kotlin, Google libs, etc. (basic Android dev woes). So I enabled proguard and now I can't seem to get it to work for instrumentation tests. Here is the ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,