Skip to Content
Android Espresso Revealed: Writing Automated UI Tests
book

Android Espresso Revealed: Writing Automated UI Tests

by Denys Zelenchuk
March 2019
Intermediate to advanced content levelIntermediate to advanced
314 pages
6h 25m
English
Apress
Content preview from Android Espresso Revealed: Writing Automated UI Tests
© Denys Zelenchuk 2019
Denys ZelenchukAndroid Espresso Revealedhttps://doi.org/10.1007/978-1-4842-4315-2_4

4. Handling Network Operations and Asynchronous Actions

Denys Zelenchuk1 
(1)
Zürich, Switzerland
 

One of the key benefits of the Espresso framework is its test robustness. It is achieved through automatic synchronization of most of the test actions. Espresso waits for the main application UI thread while it is busy and releases test actions after the UI thread becomes idle. Moreover, it also waits for AsyncTask operations to complete before it moves to the next test step. In this chapter, we will see how Espresso can handle network operations using the IdlingResource mechanism and become familiar with the ConditionWatcher mechanism as an alternative ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

How to Communicate Successfully: The Halvorson Collection (2 Books)

How to Communicate Successfully: The Halvorson Collection (2 Books)

Heidi Grant Halvorson

Publisher Resources

ISBN: 9781484243152Purchase LinkPublisher Website