- [Instructor] In the Hello World chapter,…we saw how to use the not matcher…in conjunction with isEnabled…to verify that a view is disabled.…In this chapter,…we will see another example of combining matchers,…this time to pinpoint a view.…We will also learn how to write our own custom matcher.…Let's take a look at the app we want to test.…I have prepared the project as exercise files.…
Download it and import it into Android Studio.…It doesn't matter where you put it.…I put mine under toolbar-title.…If Android Studio asks you to upgrade the Gradle plug-in,…you can say Don't remind me again.…Press Command + O to open MainActivity.…The only thing is does is to call setTitle…with the string R.string.title.…
Let's run the app and see how it looks like.…Press the green triangle to run the app.…Indeed, the content view is empty…and the title says My Amazing Title,…the string specified by R.string.title.…How do we test that?…The title is not a part of content view…and we do not have an ID for it.…How do we pinpoint this view?…
- Advantages of Espresso and automated testing
- Adding Espresso to an Android project
- Creating your first test
- Recording actions in the Test Recorder
- Pinpointing a view
- Testing list views
- Testing recycler views
Skill Level Beginner
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Effective Android Testing for Mobile Developerswith Chiu-Ki Chan2h 56m Intermediate
Advanced Android Espresso Testingwith Chiu-Ki Chan1h 37m Advanced
1. What Is Espresso?
2. Your First Espresso Test
3. Espresso Test Recorder
4. Pinpointing a View
5. List View
6. Recycler View
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.