Android Espresso Testing Example Espresso use for android UI Testing Add bellow dependencie on your build.gradle(app) file androidTestImplementation 'com.android.support.test:rules:1.0.2' Run app for Testing as as like bellow image Screenshot