How to enable Espresso Test Recording
Asked Answered
S

4

23

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.

Soilure answered 19/5, 2016 at 7:31 Comment(7)
could you post the link to that keynoteMaynardmayne
Check out this blogpost: androidpolice.com/2016/05/18/…Soilure
Check this:google.github.io/android-testing-support-library/docs/espresso/…Poco
There's a bug report here: code.google.com/p/android/issues/detail?id=210478. Vote for it by clicking on the star. It'll come, just not right now.Afterheat
Possible duplicate but accepted answer: #37319422Trouble
if you want play with droidtestlab.com. I use it and it works pretty well. What are your thoughts @Vyacheslav Pedak?Eyeopener
@war_Hero This is the video where they were showing the functionality youtu.be/…Choate
P
7

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.

Parallax answered 23/5, 2016 at 21:7 Comment(0)
C
4

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.

Complot answered 19/5, 2016 at 17:43 Comment(0)
R
2

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

Ravelment answered 9/6, 2016 at 6:14 Comment(0)
A
1

Download the latest version of Android Studio i.e. Android Studio 2.2 Preview 3.

After downloading, in the toolbar go to Select Run/Debug Configuration which is present to the right of Make Project button. In the Run/Debug Configuration, select app. Then go to the Menubar and inside the Build menu you will find an option Record Expresso Tests. Click it and enjoy the ease of testing.

Ayannaaycock answered 23/6, 2016 at 9:24 Comment(1)
It is missing. No such menu.Inaccurate

© 2022 - 2024 — McMap. All rights reserved.