使用 Cucumber 或 RSpec+Selenium 创建最终用户文档?

发布于 2024-08-31 03:28:37 字数 1539 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

两人的回忆 2024-09-07 03:28:37

您应该看看 cucumber-screenshot gem。看起来它完全符合您的要求——为场景中的每个步骤获取 HTML 或(如果您使用的是 Mac)PNG 屏幕截图。 (去年我曾有一段时间在玩我自己的这个想法的版本。我放弃了它很早就开始了,所以你可能最好使用 Cucumber-screenshot,但也可以随意从 Visible Cukes 获取任何你可以使用的东西)。

You should take a look at the cucumber-screenshot gem. It looks like it does exactly what you want--taking HTML or (if you're on a Mac) PNG screenshots of each step in your scenarios. (I was playing with my own version of this idea for a while last year. I dropped it pretty early on, so you're probably better off with cucumber-screenshot, but feel free to take anything you can use from Visible Cukes too).

━╋う一瞬間旳綻放 2024-09-07 03:28:37

我使用 Lowdown (http://lowdownapp.com) 与客户来回交流功能。 Cucumber 的全部意义在于它是特定于业务的,因此您不必将其转换为另一种文档格式。不过我大概明白你要去哪里了。

您可以使用 http://seleniumshots.com/ 从测试中获取应用程序的屏幕截图。不过,我不知道它是否已经结束测试版。

I use Lowdown (http://lowdownapp.com) to communicate features back and forth with clients. The whole point of cucumber is that it's business specific, so you shouldn't have to translate it to another format for documentation. I kinda see where you're going, though.

You can use http://seleniumshots.com/ for getting screenshots from your app from the tests. I don't know if it's out of beta yet, though.

尘曦 2024-09-07 03:28:37

听起来很酷。也许您不希望全世界都可以使用某些黄瓜场景。如果开发人员输入了敏感信息,例如人员姓名/开发密码;或者发现网站漏洞并编写了黄瓜场景来验证它是否已修补。

Sounds cool. Maybe you don't want some of the cucumber scenarios available to the whole world. If a developer put something sensitive, like people's names / development passwords; or a website exploit was discovered and a cucumber scenario was written to verify it was patched.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文