Join James P White for an in-depth discussion in this video UI Automator API, part of Android App Development: Unit Testing.
- [Voiceover] The UI Automator provides a test framework…or library that allows you to write tests…that programmatically exercise your app…or any app on the device or emulator…from a user interface perspective.…It does so without having to know the details…of how the app was put together.…All you have to know is the elements of the UI…you want to interact with.…Thus the reason for the UI viewer…demonstrated in the last video.…These types of tests are black box tests.…Since the test code doesn't know…the internal implementation of the apps it tests.…
In the last video, you saw how to set up…a UI automated test.…Let's now look into the API…that the UI Automator library provides.…To begin, the UiDevice class provides the means…to get a UiDevice instance.…This instance represents a device or emulator.…It's through a UiDevice instance…that your test code can begin to interact…with the user interface of the app.…From a UiDevice instance you can invoke methods…listed here: to rotate the device; push the back, home,…or menu button; click on a particular spot on the screen;…
AuthorJames P White
- Why unit test?
- Unit testing tools
- Local testing with JUnit
- Working with JUnit assertions, rules, and categories
- Executing instrumented tests
- Filtering tests
- Testing with UI Automator and other testing tools
Skill Level Intermediate
UX Foundations: Usability Testingwith Chris Nodder1h 29m Beginner
1. Getting Started
2. Local Tests
3. Instrumented Tests
4. Other Android SDK Testing Tools
5. Mocking objects
- 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.