- [Instructor] Let's take a look at the project…we'll be using together in this chapter.…I've provided them for you…in the downloadable exercise files.…Let's open it in Android Studio.…Choose Import Project…and navigate to the folder…that you have downloaded the code at.…Mine is under projects/hello-world,…but you can put it anywhere you want.…Click Open.…
If you see a dialog asking you to upgrade Gradle,…you can just click Don't remind me again for this project.…Now let's take a look at this app…and see what it does.…Press Command + O to open MainActivity.…We are going to write an Espresso test…for this Hello World app.…Let's walk through the app and see what it does.…
Open activity_main.xml.…In line 13, there is a button,…and on line 19, there is a text view.…Right now there's nothing on the text view…so you can't really see it.…The button has the word Greet on it,…and on line 18,…you can see that when you click on it,…the greet function is called.…Command + click to go to MainActivity…to see what it does.…
In line 18,…
- 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.