Android Espresso Revealed: Writing Automated UI Tests

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Write Android user interface (UI) tests using Google Espresso for Android. You’ll cover all the major topics of writing functional UI automated tests using the Espresso testing framework, including different ways of running automated tests, architecting test projects in an easy and maintainable way, and using tools which help to implement automated tests with less effort. Android Espresso Revealed explains the basics of using Espresso to write automated UI tests, and how to customize the framework for advanced functionality. The author provides examples in both Java and Kotlin, and includes dealing with network operations in UI tests, testing application accessibility, implementing supervised monkey tests, and more. What You Will Learn • Write Espresso tests with both Kotlin and Java including test project migration from Java to Kotlin • Test web views inside the application under test • Use Espresso to set up test devices or emulators to minimize test flakiness and run tests in Firebase Test Lab • Verify and stub intents with Espresso-Intents • Move test projects to AndroidX • Test notifications or operate on third-party apps during Espresso test execution • Apply different test architecture approaches to the test project to reduce maintenance effort • Implement supervised monkey tests using Espresso and UIAutomator Who This Book Is For Engineers with experience of Android test automation will benefit from this book

Author(s): Denys Zelenchuk
Edition: 1
Publisher: Apress
Year: 2019

Language: English
Commentary: True PDF
Pages: 308
City: New York, NY
Tags: Mobile Development; Android; Network Programming; Testing; Test Automation; Productivity; Espresso; Kotlin; User Interface Testing

Front Matter ....Pages i-xvii
Getting Started with Espresso for Android (Denys Zelenchuk)....Pages 1-48
Customizing Espresso for Our Needs (Denys Zelenchuk)....Pages 49-67
Writing Espresso Tests with Kotlin (Denys Zelenchuk)....Pages 69-84
Handling Network Operations and Asynchronous Actions (Denys Zelenchuk)....Pages 85-105
Verifying and Stubbing Intents with IntentMatchers (Denys Zelenchuk)....Pages 107-136
Testing Web Views (Denys Zelenchuk)....Pages 137-155
Accessibility Testing (Denys Zelenchuk)....Pages 157-164
Espresso and UI Automator: the Perfect Tandem (Denys Zelenchuk)....Pages 165-189
Dealing with Runtime System Actions and Permissions (Denys Zelenchuk)....Pages 191-207
Android Test Automation Tooling (Denys Zelenchuk)....Pages 209-229
The Screen Object Design Pattern in Android UI Tests (Denys Zelenchuk)....Pages 231-244
Testing Robot Pattern with Espresso and Kotlin (Denys Zelenchuk)....Pages 245-254
Supervised Monkey Tests with Espresso and UI Automator (Denys Zelenchuk)....Pages 255-269
AndroidX Test Library (Denys Zelenchuk)....Pages 271-280
Improving Productivity and Testing Unusual Components (Denys Zelenchuk)....Pages 281-290
Back Matter ....Pages 291-308