Abstract
The Screen Object Design Pattern in mobile UI tests is equivalent to the well known Page Object Design Pattern in web tests, which is the abstraction layer representing an interface that allows its users to operate page elements or validate the page state. Since Page Object takes its name from the web page, it is hard to name a mobile application View or Screen, which is represented to the users as a page. This chapter demonstrates how the Screen Object Design Pattern can be applied to Android UI tests using Kotlin. You will learn to create a screen object that represents a single Android application activity or fragment (i.e., a screen) and then use these objects or their methods in tests that represent real user flows.
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). The Screen Object Design Pattern in Android UI Tests. In: Android Espresso Revealed. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4315-2_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4315-2_11
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)