Android Espresso Revealed: Writing Automated UI Tests

  • 2h 40m
  • Denys Zelenchuk
  • Apress
  • 2019

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

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.

In this Book

  • Getting Started with Espresso for Android
  • Customizing Espresso for our Needs
  • Writing Espresso Tests with Kotlin
  • Handling Network Operations and Asynchronous Actions
  • Verifying and Stubbing Intents with IntentMatchers
  • Testing Web Views
  • Accessibility Testing
  • Espresso and UI Automator: The Perfect Tandem
  • Dealing with Runtime System Actions and Permissions
  • Android Test Automation Tooling
  • The Screen Object Design Pattern in Android UI Tests
  • Testing Robot Pattern with Espresso and Kotlin
  • Supervised Monkey Tests with Espresso and UI Automator
  • AndroidX Test Library
  • Improving Productivity and Testing Unusual Components
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 5.0 of 2 users Rating 5.0 of 2 users (2)
Rating 4.5 of 2 users Rating 4.5 of 2 users (2)