Top "Android-espresso" questions

Espresso is a library which is used to write Android UI tests.

How to rotate activity, I mean: screen orientation change using Espresso?

I have decided that one of the testing criteria for my application tests with Google's Espresso is: Test should maintain …

android robotium ui-testing android-espresso
How to test TextInputLayout values (hint, error, etc.) using Android Espresso?

I am trying to test using Espresso if my TextInputLayout views have specific hint. I'd used a code as below: …

android android-layout android-espresso
java.lang.Exception: Custom runner class AndroidJUnit4 should have a public constructor with signature AndroidJUnit4(Class testClass)

gradle looks like: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.google.developer.taskmaker" minSdkVersion 19 targetSdkVersion 25 versionCode 1 …

android android-espresso
Using Espresso to Unit Test Google Maps

I am using Espresso to do some UI testing on my app. I have a fragment with a map, and …

android google-maps android-espresso
Espresso: How to test SwipeRefreshLayout?

My app reloads data when a down-swipe is done on a SwipeRefreshLayout. Now I try to test this with Android …

android testing android-espresso
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
Espresso test recording feature in Android Studio 2.2

In Android Studio 2.2 there is supposed to be a test recording function? Where do I find it and how do …

android automated-tests android-espresso android-studio-2.2 android-espresso-recorder
Espresso test error: AppNotIdleException

I turned off all animations on developer options. But I still get this exception when trying to click on one …

android android-espresso ui-testing
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 Espresso: How to check that Toast message is NOT shown?

I'm working now in my functional tests and in one of them I have to test that a toast message …

android testing functional-testing android-espresso