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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Denys Zelenchuk
About this chapter
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
DOI: https://doi.org/10.1007/978-1-4842-4315-2_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4314-5
Online ISBN: 978-1-4842-4315-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)