~/talk

Making your Espresso sweeter

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [testing]
links:none on file
slides:none on file

Explains a concrete rework: raw Espresso tests with 37 lines and many imports get refactored into Page Object pattern page classes, then a shared harness library that centralizes execute(action) and logging, reducing a test to 19 lines and dropping three import lines per page. Network calls get recorded and replayed with OKReplay, cutting flaky, environment-dependent failures and speeding runs from seconds to milliseconds variability. Internal libraries share the same API across three Android apps and an equivalent iOS suite.

AI-written summary · about

  1. 0:00Introduction to UI testing
  2. 1:52Basic Espresso test structure
  3. 3:57Problems with raw Espresso tests
  4. 4:39Page object pattern explained
  5. 6:43Refactoring with page objects
  6. 8:28JUnit dependency issues
  7. 9:31Espresso internals and limitations
  8. 11:16Centralizing test execution
  9. 13:41Maintenance burden reduction
  10. 14:24Mocking API dependencies
  11. 16:10Cross-platform test consistency
  12. 17:12Q&A session begins
~/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.