使用黄瓜/水豚时是否有类似硒网格的东西?

发布于 2024-10-06 00:53:39 字数 558 浏览 0 评论 0原文

所以我试图建立一个像硒网格一样的环境:
1) 它在一组分布式客户端上并行运行测试
2)我可以指定在特定客户端上运行的测试(在不同的操作系统上运行,使用不同的浏览器),或者在所有客户端或其任意组合上运行一次测试。

问题是水豚目前实际上使用 WebDriver,而不是 selenium,所以据我所知,我无法指定一个 selenium 网格来供测试连接并使其工作。

我研究过诸如 DeepTestTestjour,但两者都没有抓到上面的痒。我希望有一种方法可以用我希望它运行的浏览器来标记黄瓜功能,并且它就可以做到这一点,就像 selenium grid 目前所做的那样。有没有一种简单的方法可以做到这一点,而无需我进行大量黑客操作,或者我是否需要等待 Selenium 2 发布? 哦,我应该补充一点,我喜欢保留水豚随意更换 Web 驱动程序的能力 - 在 selenium(或我想我应该说 WebDriver)、htmlunit 等上运行。

So I'm trying to get an environment set up that acts like a selenium grid in that:
1) It runs the tests in parallel across a distributed set of clients
2) I can specify tests to run on specific clients (which are running on different OS's, with different browsers), or tests to run once on all the clients or any combination thereof.

The problem is that capybara actually currently uses WebDriver, not selenium, so as far as I know I can't specify a selenium grid for the tests to hook up to and have it work.

I've looked into things such as DeepTest and Testjour, but neither scratches both itches above. I'd love for there to be a way I can tag a cucumber feature with what browsers I want it run on, and it just does it, like selenium grid currently does. Is there an easy way I can do this without a lot of hackery on my part, or do I need to wait for Selenium 2 to be released?
Oh and I should add I've love to keep capybara's ability to swap out web drivers at will - running on selenium (or WebDriver I guess I should say), htmlunit, etc.

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

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

发布评论

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

评论(2

幸福丶如此 2024-10-13 00:53:39

目前有一个用于 webdriver 的 grid 版本正在开发中。

您可以找到相关信息 这里

There is currently a version of grid for webdriver under development.

You can find info about it here

紫罗兰の梦幻 2024-10-13 00:53:39

因此,我在这里深入研究的一个潜在解决方案是 Hydra。它似乎只需使用 ssh 就可以在多台机器上并行执行 Cucumber 场景,从而解决了上面的#1 问题。我已经设置好它并让它在两台 Mac 和一台 Windows 虚拟机上正常运行,一切运行顺利。然而,第二个痒点仍然没有被抓到。所以我fork它,我的第一遍就是简单地设置一种运行all<的方法/em> 以并行方式在所有 机器上提供功能,确保所有功能都在我们拥有的每个受支持的浏览器上进行测试。如果时间允许并且需求足够大,我的下一步可能是采用某种方式能够指定哪些功能在哪些机器上运行。我们会看看事情进展如何。

So one potential solution I'm digging into here is Hydra. It seems to work for parallel execution of cucumber scenarios across multiple machines simply using ssh, thus scratching itch #1 above. I've set it up and have it running properly on two macs and a windows VM, and things are running smoothly. However, itch #2 remains unscratched. So I forked it, and my first pass is to simply set up a way to run all features on all machines in a parallel manner, ensuring that all features get tested on every supported browser we have. My next pass may be to hack in a way to to be able to specify which features run on which machines, if time permits and the need is great enough. We'll see how it goes.

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