Last updated: Jul 02, 2019 13:37
Your Espresso test fails with the following error:
android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED. Did you forget to launch the activity. (test.getActivity() or similar)?
at dalvik.system.VMStack.getThreadStackTrace(Native Method) ...
This often means that device screen has been automatically locked and the test cannot proceed further.
To disable Screen Lock from Android settings:
Go to Settings > Security (or Security and Location) > Screen Lock > None
If a MDM application is controlling the device, please consult with the following article: Mobile Device Management (MDM) and Device Locking