~/talk

Efficient testing UI Android apps by example

Talkat Mobilization 8 · on Friday, 2018-10-26· [android, testing]
links:none on file
slides:none on file

Explains concrete tactics: use Layout Inspector for app-only views and UI Automator Viewer for system-wide views, prefer Espresso with custom idling resources to avoid brittle sleeps, and avoid the generated recorder output because Espresso Test Recorder generates unmaintainable code. Adopt a robot-pattern internal DSL so DSL + robot pattern makes tests readable, start true end-to-end regressions from the splash screen with 10–20 core scenarios, use UI tests with mocking (about 40% faster in examples), and treat flaky tests by retrying failed runs three times and converting bugs into tests.

AI-written summary · about

  1. 0:00Introduction to UI testing
  2. 3:40Local vs instrumentation tests
  3. 10:03Espresso test recorder limitations
  4. 13:41Espresso synchronization issues
  5. 16:53End-to-end vs UI tests with mocking
  6. 21:55Causes of flaky tests
  7. 25:55Naming and organizing tests
  8. 30:12Prioritizing test cases
  9. 33:41Writing tests from specification
  10. 35:28Efficiency in test design
  11. 43:03Q&A on flakiness and cross-platform testing
~/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.