0%

Book Description

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

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Getting Started with Espresso for Android
  4. 2. Customizing Espresso for Our Needs
  5. 3. Writing Espresso Tests with Kotlin
  6. 4. Handling Network Operations and Asynchronous Actions
  7. 5. Verifying and Stubbing Intents with IntentMatchers
  8. 6. Testing Web Views
  9. 7. Accessibility Testing
  10. 8. Espresso and UI Automator: the Perfect Tandem
  11. 9. Dealing with Runtime System Actions and Permissions
  12. 10. Android Test Automation Tooling
  13. 11. The Screen Object Design Pattern in Android UI Tests
  14. 12. Testing Robot Pattern with Espresso and Kotlin
  15. 13. Supervised Monkey Tests with Espresso and UI Automator
  16. 14. AndroidX Test Library
  17. 15. Improving Productivity and Testing Unusual Components
  18. Back Matter
3.142.53.68