All quizzes
Free quiz · 20 questions in the bank

Espresso quiz

Test your Espresso knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is an "IdlingResource" in Espresso, and when is it needed?

Questions in this quiz
  1. What is an "IdlingResource" in Espresso, and when is it needed?
  2. Why might a test using `withText("Submit")` as a matcher sometimes match more than one view unexpectedly, causing an `AmbiguousViewMatcherException`?
  3. What does `pressBack()` simulate in an Espresso test?
  4. What is Espresso's core design principle around handling asynchronous UI updates (like animations or a background task updating the UI) during test execution?
  5. What is the basic structure of an Espresso test statement, commonly summarized as "ViewMatchers, ViewActions, ViewAssertions"?
  6. What is `FragmentScenario`, and what testing scenario is it designed for?
  7. What is the purpose of Espresso's `scrollTo()` ViewAction?
  8. What does `ActivityScenario` (used in modern Espresso/AndroidX tests) provide for a test?
  9. What does `.check(matches(isDisplayed()))` verify in an Espresso test?
  10. What is a benefit of Espresso's design encouraging small, focused test methods that verify one specific UI interaction/outcome, rather than one large end-to-end test covering an entire user flow?
  11. What is a common reason UI tests (Espresso included) are typically run less frequently in CI than fast unit tests?
  12. What is the general benefit of Espresso's tight integration with the Android framework compared to a more general cross-platform mobile UI testing tool?
Gaps to close?
Read the curated Espresso notes — core concepts, patterns, interview prep.
Espresso notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web