The current code baseline / application I am working on abstracts away much of the Android framework. The feature I am writing is opened as a plugin within the Android application. I thus do not have access to the Activity of the main application and have used the UI Automator to start the application and the plugin (this part works fine).
Is it possible to get Espresso to tie into the application at this point so I can test to behavior / views? When I attempt to run Espresso commands at this point I get the following error: java.lang.RuntimeException:
No activities found. Did you forget to launch the activity by calling getActivity() or startActivitySync or similar? at androidx.test.espresso.base.RootViewPicker.waitForAtLeastOneActivityToBeResumed(RootViewPicker.java:176)
from Can Espresso still work if you do not launch an Activity with it?
No comments:
Post a Comment