Skip to main content

Customizing Espresso for Our Needs

  • Chapter
  • First Online:
Android Espresso Revealed
  • 1078 Accesses

Abstract

Espresso is a really good testing framework, but it is not possible to cover all the test automation cases with a predefined set of methods and classes. In the same way that Android’s fundamental components can be customized during application development, Espresso enables us to customize its components. Engineers are free do create their own actions, matchers, and failure handlers and plug them into the tests. In this chapter, we learn how to create our custom view, swipe, and recycler view actions; understand how to build different types of matchers; handle test failures in a customized way, and take the proper screenshots on failure.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+
from €37.37 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

Chapter
EUR 29.95
Price includes VAT (Netherlands)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 49.99
Price includes VAT (Netherlands)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 65.39
Price includes VAT (Netherlands)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Denys Zelenchuk

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Zelenchuk, D. (2019). Customizing Espresso for Our Needs. In: Android Espresso Revealed. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4315-2_2

Download citation

Publish with us

Policies and ethics