在 Selenium 网格上运行 Selenium 套件
有谁知道如何从硒网格运行硒测试套件。
我知道您可以通过单个测试以编程方式完成此操作,但我想知道是否有一种简单的方法可以使用完整的测试套件来完成此操作。
类似于 java -jar selenium-server.jar -host -htmlSuite 。
感谢您的帮助。
Does anyone know how to run a selenium test suite from a selenium grid.
I know you can do it programatically with a single test, but I was wondering if there was an easy way to do it with a full test suite.
Something like java -jar selenium-server.jar -host -htmlSuite .
Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此页面将为您提供很大帮助。它演示了如何设置一个集线器和连接到它的节点,注册其“配置”(它们具有哪些浏览器/“功能”)。拼图的最后一部分是通过代码以编程方式连接到集线器并在其上运行测试(集线器会将内容转发到相关节点,以便在那里执行测试)。
This page will help you a lot. It demonstrates how to set up a hub and nodes which connect to it registering their 'configurations' (what browsers/'capabilities' they have). And the last piece of the jigsaw which is having code programmatically connect to the hub and run tests on it (the hub will forward stuff to a relevant node so the tests get performed there).
不会。Selenium Grid 是 Selenium RC 用户在具有细粒度配置(例如特定版本的浏览器)的各种机器上运行测试的工具。据我所知,没有能力在 htmlSuite 中指定这一点。如果有的话,你也许能够让它发挥作用。但仅运行这样的套件不受支持,而且可能永远不会受支持,因为这不是它的设计目的。
No. Selenium Grid is a facility for Selenium RC users to run their tests across a variety of machines with fine-grained configurations (e.g., a particular version of a browser). As far as I know, there's no ability to specify that in the htmlSuite. If there were, you might be able to make it work. But running just a suite like this is not supported and likely never will be because that's not what it was designed for.