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/12Score 0

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?

In this round
  1. 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?
  2. What is Espresso-Intents used for?
  3. What does `RecyclerViewActions.actionOnItemAtPosition()` (from the Espresso-Contrib module) allow you to do?
  4. How would you simulate clicking a button matched by its ID in Espresso?
  5. How would you type text into an `EditText` field in an Espresso test?
  6. What does `ActivityScenario` (used in modern Espresso/AndroidX tests) provide for a test?
  7. What does `pressBack()` simulate in an Espresso test?
  8. What is the basic structure of an Espresso test statement, commonly summarized as "ViewMatchers, ViewActions, ViewAssertions"?
  9. What does `.check(matches(isDisplayed()))` verify in an Espresso test?
  10. Where do Espresso tests typically run, compared to local JVM-based unit tests in an Android project?
  11. What is a common reason UI tests (Espresso included) are typically run less frequently in CI than fast unit tests?
  12. What is `FragmentScenario`, and what testing scenario is it designed for?
Gaps to close?
Read the curated Espresso notes — core concepts, patterns, interview prep.
Espresso notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka