From the course: Advanced Android Espresso Testing
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Synchronization - Android Tutorial
From the course: Advanced Android Espresso Testing
Synchronization
- [Instructor] Synchronization is a big advantage of using Espresso. Espresso synchronizes between the app and the test by making sure that the app is idle before proceeding. Espresso defines idling as the main threat message queue being empty and there are no pending async tasks. However, that does not cover all the cases. For instance, your may app may be fetching some data from the internet using a network library instead of async task. In that case, Espresso does not know that it should wait for the network fetch to finish before proceeding. To take care of scenarios like that, you can register idling resources with Espresso.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.