使用 Cucumber 测试 JavaScript 的不引人注目的方式?

发布于 2024-08-08 04:22:50 字数 173 浏览 2 评论 0原文

使用 Cucumber 测试 JavaScript 应用程序时您更喜欢什么?

我以前从未这样做过 - 我只使用 Webrat 来测试纯 html。

我尝试过 Selenium,但它让我感到沮丧,并且我没有找到任何关于 Cucumber 与 Selenium 结合使用的好的文档。

此致

what do you prefer for testing JavaScript apps using Cucumber?

I never did it before - I only used Webrat for testing plain html.

I have tried Selenium, but it frustrated me and I didn't find any good documentation about Cucumber in combination with Selenium.

Best regards

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

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

发布评论

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

评论(3

始终不够 2024-08-15 04:22:50

查看水豚。它是 Webrat 的直接替代品,但它允许您通过 Selenium 驱动 Firefox 来测试 Javascript 代码(例如 AJAX 调用)。

Check out Capybara. It's a drop-in replacement for Webrat, but it lets you drive Firefox via Selenium for testing Javascript code (e.g. AJAX calls).

别靠近我心 2024-08-15 04:22:50

在这里,我们让 webrat 驱动 selenium 来完成大部分操作。但这仍然是非常新鲜的技术,因此请准备好深入研究代码和调试器。

Around here we let webrat drive selenium for most of the operations. But it's still very fresh technology so be prepared to dig around in the code and debugger a bit.

GRAY°灰色天空 2024-08-15 04:22:50

文档:
https://github.com/cucumber/cucumber/wiki/Setting-up- Selenium

该 wiki 上还有各种 Watir 风格的资源。

Documentation:
https://github.com/cucumber/cucumber/wiki/Setting-up-Selenium

There are also resources on that wiki for various flavors of Watir.

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