Top "Android-testing" questions

The Android testing framework

Android Base64 encode and decode return null in Unit Test

I am attempting to decode a Base64 encoded string in Android using the http://developer.android.com/reference/android/util/…

java android unit-testing junit android-testing
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 fill in password EditText with Android uiautomator?

Is it possible for the uiautomator to select a password EditText? I have no problem finding other EditText views by …

android ui-automation android-testing android-uiautomator
Android Espresso, Wake up device before test. How to use a custom manifest for test?

I've been writing tests with androids new espresso framework and find that it works well. One annoying thing (not particular …

android android-testing android-wake-lock android-espresso
Android - Independent Fragment UI testing tool

I've been looking for a way to test the UI of my Fragments separately (ie, independently from other fragments and …

android android-testing android-espresso android-uiautomator
How can I add unit test for android architecture components life cycle event?

I tried to add a unit test for my function which supports architecture components lifecycle event. To support lifecycle event, …

android android-testing android-architecture-components android-architecture-lifecycle
Android http testing with Robolectric

I have an Android app where the main part of the app is the APIcalls.java class where I make …

android robolectric android-testing
How to debug instrumentation tests in Android Studio?

In Android Studio when I debug instrumentation test, the test won't stop on any breakpoint. Debugging unit tests works. I …

android android-studio mockito android-testing android-espresso
Using assets in robolectric tests

In my robolectric tests I am trying to read a file. Since this file contains just the test data I …

android robolectric android-testing
AndroidJUnit4 and Parameterized tests

Google provide new classes to write tests for Android, and especially using jUnit 4: https://developer.android.com/tools/testing-support-library/index.…

android junit android-testing parameterized