android-espresso-recorder

attribute android:forceQueryable not found in Android studio when running Espresso test

烈酒焚心 提交于 2021-01-03 05:43:27
问题 I have recorded my android app Espresso test using android studio Record Espresso Test option in Run menu. In the end of the record I saved the test with a my own file name. Once click the save button, IDE automatically created the file in AndroidTest directory of the app module. I right click the saved file and clicked run. Then it prompting me the following error. /Users/dehanwijesekara/Documents/ProjectName/app/build/intermediates/packaged_manifests/debugAndroidTest/AndroidManifest.xml:24:

Android Espresso does not have a NavController set Error

[亡魂溺海] 提交于 2020-07-23 06:52:16
问题 I am trying to test a fragment in my navigation architecture and my test is as follows: test.kt @RunWith(AndroidJUnit4::class) @MediumTest internal class AddingAccountTest{ @get:Rule var activityRule: ActivityTestRule<MainActivity> = ActivityTestRule(MainActivity::class.java) @Before fun loadCorrespondingFragment(){ } @Test fun checkThatAllFieldsInFormAreEmpty(){ // Create a TestNavHostController val navController = TestNavHostController(ApplicationProvider.getApplicationContext())

Android Espresso does not have a NavController set Error

我是研究僧i 提交于 2020-07-23 06:51:19
问题 I am trying to test a fragment in my navigation architecture and my test is as follows: test.kt @RunWith(AndroidJUnit4::class) @MediumTest internal class AddingAccountTest{ @get:Rule var activityRule: ActivityTestRule<MainActivity> = ActivityTestRule(MainActivity::class.java) @Before fun loadCorrespondingFragment(){ } @Test fun checkThatAllFieldsInFormAreEmpty(){ // Create a TestNavHostController val navController = TestNavHostController(ApplicationProvider.getApplicationContext())

How to let Espresso click a specific RecyclerView item?

五迷三道 提交于 2020-01-05 05:27:27
问题 I am trying to write an instrumentation test with Espresso for my Android app which uses a RecyclerView . Here is the main layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView android:id="@+id/grid" android:layout_width="match

How to let Espresso click a specific RecyclerView item?

喜夏-厌秋 提交于 2020-01-05 05:27:05
问题 I am trying to write an instrumentation test with Espresso for my Android app which uses a RecyclerView . Here is the main layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView android:id="@+id/grid" android:layout_width="match

android.support.test.espresso.PerformException: Error performing 'load adapter data' on view

泄露秘密 提交于 2019-12-23 18:28:57
问题 I am using Espresso to test a list view that appears when I am searching for an item (like an autocomplete). The list view does not appear until the user has typed in something into the SearchView. i.e. I set the ListView to View.VISIBLE only when the user has typed something into the SearchView I am getting this error when I try to click on text in a list view. android.support.test.espresso.PerformException: Error performing 'load adapter data' on view 'with id:' . Using onData did not work.

Espresso not uploading app apk to Firebase, getting message “Skipped triggering the test execution: The provided APK is invalid”

回眸只為那壹抹淺笑 提交于 2019-12-13 04:35:46
问题 I'm doing some automated testing using Espresso with Firebase, but when I run my test, when trying tu upload my test to Firebase, I get the message Skipped triggering the test execution: The provided APK is invalid, how can I solve it? 来源: https://stackoverflow.com/questions/58227597/espresso-not-uploading-app-apk-to-firebase-getting-message-skipped-triggering

How to access elements on external website using Espresso

徘徊边缘 提交于 2019-12-09 10:18:40
问题 Using espresso, we click a Login button which launches an external website (Chrome Custom Tab) where you can login and then it redirects back to our android application. Is there a way in Espresso to: 1) Verify the correct URL is being launched 2) Access the elements on the website so that I can enter the login information and continue to login When I try viewing it in the Espresso Launch Navigator, nothing shows up for the page, and if I try to record, it doesn't pick up on me entering

Unable to import static android.support.test.espresso.contrib.DrawerMatchers.isOpen;

こ雲淡風輕ζ 提交于 2019-12-07 08:18:59
问题 I am using espresso for testing my android application. When am trying to write test cases for navigation drawer menu am unable to import any of these import static android.support.test.espresso.contrib.DrawerActions.closeDrawer; import static android.support.test.espresso.contrib.DrawerActions.openDrawer; import static android.support.test.espresso.contrib.DrawerMatchers.isClosed; import static android.support.test.espresso.contrib.DrawerMatchers.isOpen; So please help me from this 回答1: You

How to access elements on external website using Espresso

坚强是说给别人听的谎言 提交于 2019-12-03 12:53:27
Using espresso, we click a Login button which launches an external website (Chrome Custom Tab) where you can login and then it redirects back to our android application. Is there a way in Espresso to: 1) Verify the correct URL is being launched 2) Access the elements on the website so that I can enter the login information and continue to login When I try viewing it in the Espresso Launch Navigator, nothing shows up for the page, and if I try to record, it doesn't pick up on me entering anything on the page. This is what I have so far (it is in Kotlin (not Java)): And here is the error that