Description
In this course, you will learn :
- An in-depth look at using the Android Espresso library to write Android UI tests.
- Android Espresso testing, including intents, hermetic test environment, and IdlingResource
- To equip you with the techniques you need to write repeatable UI tests
Syllabus:
- Introduction
- What you should know
- Exercise files
- App: Cat Names
- Locked content
- How intents are used
- Locked content
- Incoming intents: Empty
- Locked content
- Incoming intents: Activity rule
- Locked content
- Incoming intents: Known theme
- Locked content
- Incoming intents: Loading string
- Locked content
- Incoming intents: Unknown theme
- Locked content
- Outgoing intents: Launch activity
- Locked content
- Outgoing intents: Verify intent
- Locked content
- Outgoing intents: How to match?
- Locked content
- Stubbing: Intending
- Locked content
- Stubbing: ActivityResult
2. Hermetic Test EnvironmentLocked content
- App: Greetings
- Locked content
- Dependency injection
- Locked content
- GreetingApplication
- Locked content
- Why extract dependencies?
- Locked content
- TestApplication
- Locked content
- CustomTestRunner
- Locked content
- Mockito
- Locked content
- Dagger
- Locked content
- Dagger dependencies
- Locked content
- Dagger component
- Locked content
- Use Dagger in application
- Locked content
- Dagger TestComponent
- Locked content
- MainActivityTest
3. IdlingResourceLocked content
- Synchronization
- Locked content
- Idling resource
- Locked content
- App: Loading dialogue
- Locked content
- Failing test
- Locked content
- Dialogue fragment idling resource
- Locked content
- Using idling resource
- Locked content
- Wrap-up