Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Espresso Test Recording

As of yesterday's Google IO Keynote, there seems to be a major update in the way we do UI testing in our projects.

Automated testing is about to see a huge step forward thanks to a new test recorder feature. Developers will be able to start a recording and start using their app. As each action is performed, it is turned into Espresso code that can be played back across a number of platforms, including Google's Cloud Test Lab. This will likely cut time to write tests to a tenth of what it took in the past.

I installed the latest version of Android Studio 2.2 Preview 1 and I am wondering what should I do to enable this feature.

like image 586
Adrian Olar Avatar asked May 19 '16 07:05

Adrian Olar


People also ask

Does espresso support test recording?

The Espresso Test Recorder tool lets you create UI tests for your app without writing any test code. By recording a test scenario, you can record your interactions with a device and add assertions to verify UI elements in particular snapshots of your app.

What is Espresso UI Test?

Espresso is an open source android user interface (UI) testing framework developed by Google. The term Espresso is of Italian origin, meaning Coffee. Espresso is a simple, efficient and flexible testing framework.


3 Answers

It's finally there! Android Studio 2.2 preview 3 (available here)

Be aware that any existing openened projects will be converted and might not be able to be openened again with older versions! (They do create a backup of the project)

You can stop looking for now. It's not in 2.2 preview 1 and neither in 2.2 preview 2. Fingers crossed for Preview 3

Unfortunately the Espresso Test Recorder is still not in this build; we're addressing a few more issues and then hope to have it ready in the next build!

Not until Preview 2 or 3. No dates yet. So I hear, https://twitter.com/JeremMartinez/status/733548682075721728. It would be interesting to see how many people have tried to find the feature and was unable to find so far.

like image 71
Entreco Avatar answered Sep 23 '22 09:09

Entreco


It was shown in the talk today as being listed under the Run menu option. But, it is not. Hopefully, it will be updated soon.

like image 40
uncouthkarl Avatar answered Sep 22 '22 09:09

uncouthkarl


The Espresso test recorder has been released in Android Studio 2.2 Preview 3.

Instructions to download: https://sites.google.com/a/android.com/tools/recent/androidstudio22preview3available

like image 41
Kevin Brotcke Avatar answered Sep 22 '22 09:09

Kevin Brotcke