Sign in Go Pro

Robot Testing Pattern

Robot Testing Pattern - Overview

 

About

The Robot Testing Pattern is a UI testing architecture that can be used to write readable, and maintainable Espresso tests on Android. Each robot you create will handle a specific screen of your application and abstract away WHAT is being tested from HOW it's being tested. It is important to create this separation of concerns in your tests to avoid duplicated code that is hard to maintain. We'll use a shopping application example to explain this pattern, and how to write testing robots. **Links:** * [Jake Wharton's presentation on Test Instrumentation Robots](https://realm.io/news/kau-jake-wharton-testing-robots/) * [Martin Fowler's blog post on Page Objects](https://martinfowler.com/bliki/PageObject.html) * [Espresso Training Documentation](https://developer.android.com/training/testing/espresso/index.html)

Lessons in Robot Testing Pattern