Software Testing and Software Quality Assurance Videos and Tutorials: Unit Testing, Functional Testing, Load Testing, Performance Testing, Test Driven Development
 

Advanced Android Espresso Testing

Do you test your Android apps? It’s okay if you don’t – historically the tools had not been stellar. But they have gotten much better, and I am going to show you my favorite, instrumentation testing with Espresso. The Espresso testing framework provides APIs for writing UI tests to simulate user interactions within a single target app.

A key benefit of using Espresso is that it provides automatic synchronization of test actions with the UI of the app you are testing. In this talk you will learn:
* The basic structure of an Espresso test (Matcher, ViewAction, ViewAssertion)
* Combining matchers such as withParent, isAssignableFrom to pinpoint your view
* onData and RecyclerViewActions to test ListView and RecyclerView
* Custom ViewAction and ViewAssertion
* Using Dagger and Mockito to write repeatable tests
* Espresso intents to intercept interaction with external app
* Build flavors for dependency injection