© Denys Zelenchuk 2019
Denys ZelenchukAndroid Espresso Revealedhttps://doi.org/10.1007/978-1-4842-4315-2_8

8. Espresso and UI Automator: the Perfect Tandem

Denys Zelenchuk1 
(1)
Zürich, Switzerland
 
Espresso is a perfect and fast test automation framework, but it has one important limitation—we are allowed to operate only inside our test application context. This means that it is not possible to automate tests for the following use cases:
  • Clicking application push notifications

  • Accessing system settings

  • Navigating from another app to the app being tested and vice versa

The reason for such a limitation lies in the nature of the Android Test instrumentation. Since during an Espresso test run, the application being tested and the test application processes ...

Get Android Espresso Revealed: Writing Automated UI Tests now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.