Don’t miss your chance to get Apress Access at $/€ 99 through Oct 29, 2019! Subscribe now >>

Android Espresso Revealed

Writing Automated UI Tests

Authors: Zelenchuk, Denys

Download source code Free Preview
  • 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
see more benefits

Buy this book

eBook $24.99
price for Mexico (gross)
  • ISBN 978-1-4842-4315-2
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover $34.99
price for Mexico
  • ISBN 978-1-4842-4314-5
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
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 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 ForEngineers with experience of Android test automation will benefit from this book

About the authors

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. 

Table of contents (15 chapters)

Table of contents (15 chapters)
  • Getting Started with Espresso for Android

    Pages 1-48

    Zelenchuk, Denys

  • Customizing Espresso for Our Needs

    Pages 49-67

    Zelenchuk, Denys

  • Writing Espresso Tests with Kotlin

    Pages 69-84

    Zelenchuk, Denys

  • Handling Network Operations and Asynchronous Actions

    Pages 85-105

    Zelenchuk, Denys

  • Verifying and Stubbing Intents with IntentMatchers

    Pages 107-136

    Zelenchuk, Denys

Buy this book

eBook $24.99
price for Mexico (gross)
  • ISBN 978-1-4842-4315-2
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover $34.99
price for Mexico
  • ISBN 978-1-4842-4314-5
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.

Services for this book

Loading...

Bibliographic Information

Bibliographic Information
Book Title
Android Espresso Revealed
Book Subtitle
Writing Automated UI Tests
Authors
Copyright
2019
Publisher
Apress
Copyright Holder
Denys Zelenchuk
Distribution Rights
Standard Apress distribution
eBook ISBN
978-1-4842-4315-2
DOI
10.1007/978-1-4842-4315-2
Softcover ISBN
978-1-4842-4314-5
Edition Number
1
Number of Pages
XVII, 308
Number of Illustrations
99 b/w illustrations
Topics