Join Chiu-Ki Chan for an in-depth discussion in this video RecipeRobot, part of Effective Android Testing for Mobile Developers.
- [Instructor] Let's create RecipeRobot,…which extends ScreenRobot.…Right click on the test package, new, Java Class.…The name will be RecipeRobot.…Right after the word RecipeRobot, we will add…extends ScreenRobot of type RecipeRobot.…We are going to use the function checkIsHidden…to verify that the title view is hidden.…
We will name this function noTitle.…Public, RecipeRobot, and then noTitle.…Inside the function, return checkIsHidden…and give it the ID R.id.title.…We need to import this ID, so go to the top…and type import_com.sqisland.tutorial.recipes and then R.…Next, we will try to use the RecipeRobot in our test.…
Go to RecipeActivityTest.java, scroll up…to the function recipeNotFound in line 43.…The first thing we do is to launch activity.…Well, right now, we don't have anything…that can do that yet, so we'll need to go back…to the RecipeRobot to implement that.…In the beginning of RecipeRobot, in line six,…we will add the function launch.…Public, RecipeRobot, launch.…
All these functions return RecipeRobot…
- Why test?
- Local vs. on-device
- Code coverage
- UI testing
- Hermetic environment
- Dependency injection
- Testing with MVP
Skill Level Intermediate
1. Testing Considerations
2. Test as You Go
3. UI Testing
4. Hermetic Environment
5. Robot Pattern
- 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.