Advanced Android Espresso Testing

Advanced Android Espresso Testing

1h 37mAdvanced2018-03-09

Authors

Chiu-Ki Chan

Chiu-Ki Chan

Android Developer, Speaker, Teacher

Course details

Take an in-depth look at using the Android Espresso library to write Android UI tests. In this course, Chiu-Ki Chan tackles advanced topics in Android Espresso testing, including intents, hermetic test environment, and IdlingResource. She covers incoming and outgoing intents, dependency injection, Mockito and Dagger, and more. If you're an Android developer interested in implementing automated testing as part of the development lifecycle, this course can help to equip you with the techniques you need to write repeatable UI tests.

Learning objectives
Incoming and outgoing intents
How intents are used
Dependency injection
Why extract dependencies?
IdlingResource
Mockito and Dagger

Skills covered

Android DevelopmentAndroidMobile DevelopmentAdvancedGoogle

Concepts

0. Introduction

  • 01 - Welcome
  • 02 - What you should know
  • 03 - Exercise files

1. Intents

  • 04 - App - Cat Names
  • 05 - How intents are used
  • 06 - Incoming intents - Empty
  • 07 - Incoming intents - Activity rule
  • 08 - Incoming intents - Known theme
  • 09 - Incoming intents - Loading string
  • 10 - Incoming intents - Unknown theme
  • 11 - Outgoing intents - Launch activity
  • 12 - Outgoing intents - Verify intent
  • 13 - Outgoing intents - How to match
  • 14 - Stubbing - Intending
  • 15 - Stubbing - ActivityResult

2. Hermetic Test Environment

  • 16 - App - Greetings
  • 17 - Dependency injection
  • 18 - GreetingApplication
  • 19 - Why extract dependencies
  • 20 - TestApplication
  • 21 - CustomTestRunner
  • 22 - Mockito
  • 23 - Dagger
  • 24 - Dagger dependencies
  • 25 - Dagger component
  • 26 - Use Dagger in application
  • 27 - Dagger TestComponent
  • 28 - MainActivityTest

3. IdlingResource

  • 29 - Synchronization
  • 30 - Idling resource
  • 31 - App - Loading dialogue
  • 32 - Failing test
  • 33 - Dialogue fragment idling resource
  • 34 - Using idling resource
  • 35 - Wrap-up

Conclusion

  • 36 - Next steps
40,000 Toman