Top "Android-instrumentation" questions

Base class for implementing application instrumentation code.

Android instrumented test no tests found

I am new to Android instrumented unit tests. I have a simple test that looks like this. This is in …

android unit-testing android-instrumentation
android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED

I'm trying to write test cases for my activities. I have several activities and there is no issue for one …

android android-espresso android-instrumentation
Activity in androidTest not getting launched by ActivityTestRule

I want to test a fragment in test activity. I added TestTragmentActivity to androidTest along with AndroidManifest.xml file. But …

android unit-testing android-espresso android-instrumentation junit-runner
Cannot resolve ActivityTestRule after upgrading dependencies. Unable to import ActivityTestRule

I have written instrumentation tests which was working fine, but now getting error cannot resolve ActivityTestRule error after upgrading dependencies …

android android-espresso android-instrumentation test-runner
Android Studio Instrumentation testing build variant

So I am trying to write instrumentation tests using a custom build variant, mock. In this build variant I mocked …

android-studio android-testing android-espresso android-instrumentation
How to check expected intent sent without actually launching activity in Espresso?

I have a UI test which clicks a button, and then launch a new Activity in its onClickListener. The test …

android android-intent android-activity android-espresso android-instrumentation
Instrumentation run failed due to 'Process crashed.' after long tests execution

I have about 700 tests to execute. When I run them all, there raised a crash "Instrumentation run failed due to …

android unit-testing crash automated-tests android-instrumentation
Where is the output from an android instrumented test?

I managed to get gradle cC to work. My test just prints out and logs one line of text. grep …

android automated-tests android-instrumentation
connectedAndroidTest how to run specific tests

I am a QA with a start up company. My Developer setup Instrumentation tests in the Android Project. He also …

android android-instrumentation android-espresso