在Android的Studio 2.2中居preSSO测试录制功能 [英] Espresso test recording feature in Android Studio 2.2

本文介绍了在Android的Studio 2.2中居preSSO测试录制功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android的Studio 2.2中有应该是一个测试录音功能?我在哪里可以找到它,我该如何使用呢?

In Android Studio 2.2 there is supposed to be a test recording function? Where do I find it and how do I use it?

推荐答案

更​​新6月9日:结果
,现在可以与Android 2.2的工作室preVIEW 3!

Update june 9th:
It is now available with android studio 2.2 preview 3!

居preSSO测试记录结果
  在IO所示的长者preSSO测试记录的演示现在包括在preVIEW 3

Espresso Test Recorder
Demo of the Espresso Test Recorder shown at IO is now included in Preview 3

我的电脑截图:结果

下载从Android的工作室$ href=\"http://tool​​s.android.com/download/studio/builds/2-2-$p$pview-3\"> 或直接打补丁p $ 2.2 PVIEW

Download it here or patch directly from android studio preview 2.2

更新5月30日:结果
Android的Studio 2.2中preVIEW 2已经出来了,但没有'记录长者preSSO测试选项呢。

Update may 30:
Android Studio 2.2 preview 2 is out, but no 'Record Espresso Test' option yet.

不幸的是,居preSSO测试记录还在不在此版本;我们解决了几个问题,然后希望有它在未来的版本准备好了!

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!

的changelog

更新:结果
这不是在高级居preSSO 的presentation如我所料,但在什么在Android开发工具是新的(信贷flackery)。它们显示在哪里找到它:

Update:
It was not in the Advanced Espresso presentation as I expected, but in What's new in Android development tools (credit to flackery). They show where to find it:

这也是在解释最新android-开发者博客

居preSSO测试记录:有时编写UI测试可能很乏味。与记录长者preSSO UI测试功能,创建测试现在为只使用你的应用程序一样简单。 Android的工作室将捕获所有的UI交互,并将其转换成可以在火力地堡测试实验室在本地,甚至运行一个完全可重用的长者preSSO测试。的要使用录音机,转到运行菜单,选择记录长者preSSO测试。

Espresso Test Recorder: Sometimes writing UI tests can be tedious. With the Record Espresso UI tests feature, creating tests is now as easy as just using your app. Android Studio will capture all your UI interactions and convert them into a fully reusable Espresso Test that you can run locally or even on Firebase Test lab. To use the recorder, go to the Run menu and select Record Espresso Test.

然而,有没有办法让在当前版本中该选项,更新所有(平台)工具等不会有所作为无论是。

However there is no way to get that option in the current release, updating all (platform)tools etc won't make a difference either.

现在,我们只能认为这是无意的冷落,并会被列入第一个下一个版本。

For now we can only assume that this was unintentionally left out, and will be included in the first next release.

我能找到关于这个唯一明智的就是

The only sensible thing I could find about this is

创建测试现在是作为使用你的应用程序一样简单。 在调试模式下运行你的应用程序并启用记录,然后这个功能将捕捉UI事件并将其转换成可以在火力地堡测试实验室在本地,甚至运行长者preSSO测试。

Creating tests is now as easy as using your app. Run your app in debug mode and enable recording, and this feature will capture UI events and convert them into Espresso Tests that you can run locally or even in the Firebase Test lab.

<子>从<一个href=\"http://venturebeat.com/2016/05/18/google-launches-android-studio-2-2-$p$pview-with-layout-editor-firebase-plugin-and-apk-analyzer/\">venturebeat

在运行调试简单,但能够记录..我不知道他们的意思是说。有一个记录的选择,但是这是用于捕捉画面并将其保存到一个MP4文件中。

Running in debug is simple, but enabling recording.. I'm not sure what they mean by that. There is a recording option, but that is for capturing the screen and saving it to a mp4 file.

目前没有在网络上被发现,并没有在Android Studio中本身不是,那更详细地解释这个功能不是它的存在。

There is currently nothing to be found on the net, and nothing in android studio itself either, that explains this feature in more detail than "it's there".

有但是会今天在谷歌I / O谈话,<一个href=\"https://events.google.com/io2016/schedule?sid=1ac924f1-0bef-e511-a517-00155d5066d7#day2/1ac924f1-0bef-e511-a517-00155d5066d7\">Advanced ES preSSO ,他们将在那里谈论这个新功能,我希望它是后更清晰。

There will however be a talk at Google I/O today, Advanced Espresso, where they will talk about this new feature and I expect it to be clearer after that.

在我见过的presentation我会更新我的答案。

I will update my answer once I've seen the presentation.

这篇关于在Android的Studio 2.2中居preSSO测试录制功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆