Skip to main content
  • Book
  • © 2019

Android Espresso Revealed

Writing Automated UI Tests

Apress

Authors:

  • A concise primer on an industry standard UI testing tool for Android developers
  • Covers both Java and Kotlin code, appropriate to today's Android developers
  • Author is an industry experienced expert at using Google Espresso for Android

Buy it now

Buying options

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

Tax calculation will be finalised at checkout

Other ways to access

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

Table of contents (15 chapters)

  1. Front Matter

    Pages i-xvii
  2. Getting Started with Espresso for Android

    • Denys Zelenchuk
    Pages 1-48
  3. Customizing Espresso for Our Needs

    • Denys Zelenchuk
    Pages 49-67
  4. Writing Espresso Tests with Kotlin

    • Denys Zelenchuk
    Pages 69-84
  5. Testing Web Views

    • Denys Zelenchuk
    Pages 137-155
  6. Accessibility Testing

    • Denys Zelenchuk
    Pages 157-164
  7. Espresso and UI Automator: the Perfect Tandem

    • Denys Zelenchuk
    Pages 165-189
  8. Android Test Automation Tooling

    • Denys Zelenchuk
    Pages 209-229
  9. Testing Robot Pattern with Espresso and Kotlin

    • Denys Zelenchuk
    Pages 245-254
  10. AndroidX Test Library

    • Denys Zelenchuk
    Pages 271-280
  11. Back Matter

    Pages 291-308

About this book

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 undertest
  • 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



Authors and Affiliations

  • Zürich, Switzerland

    Denys Zelenchuk

About the author

Denys Zelenchuk's professional career as Test Engineer started in Poland in 2010. Starting from 2011, he has been involved in testing mobile applications. He was working at companies like Tieto Poland, XING (Hamburg, Germany) and currently is working and living in Zurich Switzerland in Numbrs Personal Finance AG company. As of October 2013, he's been using Espresso for Android test automation framework to write automated tests. 


Bibliographic Information

Buy it now

Buying options

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

Tax calculation will be finalised at checkout

Other ways to access