Learn the difference between Android local tests and instrumented tests, and how instrumentation works.
- [Voiceover] Native Android code is written in Java.…In any application, there'll be a lot of Android Java code…that has no dependency on Android framework or APIs.…It's just "Plain" Java.…For instance, in a tip calculator app,…code to calculate the tip based on the bill amount…and the desired tip percentage would look the same…in an Android app as it would in any…Java enterprise or web application.…Other parts of an Android application…rely on the Android framework.…For example, the code to display the calculated tip…to the user in an Android screen is going to rely heavily…on the Android user interface APIs.…
Even outside of the user interface APIs,…there are many Android APIs that are not available…or not the same in other Java application environments.…Consider code to fetch a contact from the Android contacts.…Code to react to open the phone app…or code to start an Android asynchronous task.…The type of code, while still written in Java,…is tightly coupled to the Android API.…It requires the Android framework to be in place…
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
Foundations of UX: 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.