# Leveraging The Robot Pattern For Espresso Tests

DevFeed: [Leveraging The Robot Pattern For Espresso Tests](<https://devfeed.tech/articles/leveraging-the-robot-pattern-for-espresso-tests-22820.md>)

Original publisher: [Read original article](<http://androidessence.com/leveraging-the-robot-pattern-for-espresso-tests/>)

Author: Adam McNeilly

Published: 2017-07-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [Testing](<https://devfeed.tech/topics/testing.md>), [Android](<https://devfeed.tech/topics/android.md>), [Development](<https://devfeed.tech/topics/development.md>), [Cheat sheet](<https://devfeed.tech/topics/cheatsheet.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [automated](<https://devfeed.tech/tags/automated.md>), [cheat-sheet](<https://devfeed.tech/tags/cheat-sheet.md>), [espresso](<https://devfeed.tech/tags/espresso.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

A tutorial on using the robot pattern to structure Espresso tests for Android applications, making tests easier to write and update as an app changes. It introduces Espresso, reviews core APIs, and demonstrates testing an add-person workflow.

## Source excerpt

Espresso is a testing framework for Android that allows developers to write automated tests for their applications. The benefit of automated testing is that you can write a test plan, and simply hit run and have all of the important features in your app tested effortlessly, and arguably more consistent and thorough than manual testing. There is no doubt that it is a lot faster. However, one of the lesser known development patterns for automated testing is the robot pattern, which makes writing tests much easier while providing a painless way to update tests whenever your app changes. Let's take a deeper dive into what makes the robot pattern so powerful, and how to implement it in your next test suite.