Espresso is an open-source library for creating user interface tests. Android Studio lets you record a test as a Java class, and you can then edit the test class to fine-tune your test.
- [Instructor] Android Studio is integrated with Espresso,…an open source testing tool,…that allow you to create user interface tests.…You can record these tests from within Android Studio,…and then play them back,…to make sure you haven't broken anything…in the user interface when you make changes.…When you use Espresso,…I strongly recommend using a physical device,…not a virtual device running on the emulator.…There are certain tests that will fail on the emulator,…that work fine on the physical device.…
And to demonstrate this,…I'm using a virtual device emulating the Pixel,…and a physical device, a Nexus 5X,…that I'm projecting to the screen.…I'm actually going to record the test…with the virtual device,…and then play it back on both.…In Android Studio, I'll go to the menu and choose Run,…Record Espresso Test.…And I'll choose my virtual device,…which I can identify by the API 25.…
I'll move the Espresso recording dialog over to the left,…and then I'll bring the virtual device onto the screen.…Now I'll start executing certain actions.…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Communicating with the Userwith Joe Marini1h 12m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
New This Week:
1. Android Development Tips Weekly
- 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.