Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android UI Testing & Challenges

Android UI Testing & Challenges

Review of Android's UI testing framework - Espresso. How software developers can utilize it and test automation engineers as well. Scaling from the laptop to the CI environment and sharding. All of these require solid tooling support. and stability. Demonstrating the power of Android Studio and test recorder. In the end, reviewing the challenges - topics that are hard by default to test on the Android platform for test automation and manual QA.

Merab Tato Kutalia

October 31, 2021
Tweet

More Decks by Merab Tato Kutalia

Other Decks in Programming

Transcript

  1. Espresso • Runs on device/emulator • High speed and stability

    • Test Recorder • Tooling • Scaling
  2. Espresso How it works Espresso handles a low-level task —

    it finds the required element on the screen according to the specified parameters (ViewMatcher), and executes an action with it (ViewAction) or performs a check (ViewAssertion).
  3. Espresso How it works All Espresso commands are executed in

    the same process in which the application under test is running. Conditions to be met: The message queue is empty. There are no instances of AsyncTask currently executing a task. All developer-defined idling resources are idle.
  4. Resources • Medium blog • Espresso docs • Sharding •

    Setup emulator for testing • Flank • ConditionWatcher