gpt4 book ai didi

android - 如何启用 Espresso 测试记录

转载 作者:IT老高 更新时间:2023-10-28 23:12:55 26 4
gpt4 key购买 nike

截至昨天的 Google IO 主题演讲,我们在项目中进行 UI 测试的方式似乎有了重大更新。

得益于新的测试记录器功能,自动化测试即将向前迈出一大步。开发人员将能够开始录制并开始使用他们的应用程序。随着每个 Action 的执行,它都会变成 Espresso 代码,可以在多个平台上播放,包括谷歌的云测试实验室。这可能会将编写测试的时间缩短到过去的十分之一。

我安装了最新版本的 Android Studio 2.2 Preview 1,我想知道我应该怎么做才能启用此功能。

最佳答案

终于来了! Android Studio 2.2 预览版 3(可用 here)

请注意,任何现有打开的项目都将被转换,并且可能无法使用旧版本再次打开! (他们确实创建了项目的备份)

你现在可以停止寻找了。它不在 2.2 预览版 1 中,也不在 2.2 预览版 2 中。为预览 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 wouldbe interesting to see how many people have tried to find the featureand was unable to find so far.

关于android - 如何启用 Espresso 测试记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37316679/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com