~/talk

Espresso Patronum: The Magic Of The Robot Pattern

Talkat Chicago Roboto 2018 · on Friday, 2018-04-13· [testing, android]
slides:none on file

Claims that applying the robot pattern to Espresso tests turns verbose, brittle UI specs into concise, maintainable actions and assertions; demonstrates on a sample registration form example that tests read like plain steps, chainable via a builder pattern, and survive layout changes by updating one robot class. Shows better failure diagnostics and HTML screenshots using Spoon and Falcon, links a working GitHub demo, and reports that the approach noticeably reduces test churn and debugging time.

AI-written summary · about

  1. 0:00Intro
  2. 2:03Three Classes To Know
  3. 2:19View Matchers
  4. 3:10ViewActions
  5. 3:35ViewAssertions
  6. 4:03Espresso Cheatsheet
  7. 4:38Espresso Example
  8. 6:24Sample Project
  9. 7:30Test Successful Registration
  10. 9:05Test A Missing Field
  11. 9:50One More Negative Test
  12. 10:17All Together
  13. 11:10The Problem
  14. 11:59No Separation Of Concerns
  15. 13:23Introducing Robots
  16. 15:10Usage
  17. 15:56Define ViewMatchers
  18. 16:23Each Action As A Method
  19. 18:27One Robot Per Screen
  20. 19:55Benefits
  21. 22:19Better Test Reporting Using Spoon & Falcon
  22. 23:46Example Spoon Report
  23. 24:20When To Take Screenshots
  24. 25:21Why screenshots?
  25. 25:50Console Output
  26. 26:38Spoon Output
  27. 27:17See Steps Taken
  28. 27:55Diagnose Failures - Stack Trace
  29. 29:01Diagnose Failures - Clear Image
  30. 29:21Learn More
  31. 30:01Adding Screenshots To Our Robot
  32. 30:49Why did we need a robot?
  33. 31:47Let's Add To It
  34. 32:33Registration Robot
  35. 32:56User ProfileRobot
  36. 34:07Recap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.