如何在 Jenkins 从节点上分发 selenium 测试
how to distribute selenium tests on Jenkins slave nodes
我已经通过 Jenkins 将测试自动化配置为 运行。在主节点上,我有项目,并且有 selenium 独立服务器。我想创建一个以上的服务器,这样我就可以 运行 我的并行测试。我已经通过 Java 应用程序创建了从机,并将节点安装为 windows 服务。我需要在每台机器上安装 Firefox 实例和 selenium 独立服务器吗?如果是,我该怎么做?
这取决于您使用的 Selenium。如果您使用 Selenium 2.0,那么您可以设置一个集线器,您可以将其他浏览器连接到该集线器。然后,中心将根据需要将测试外包给浏览器(或节点)
这个page描述的很好
Selenium Grid builds on the traditional Selenium setup, taking
advantage of the following properties:
The Selenium test, the application under test, and the remote
control/browser pair do not have to be co-located. They communicate
through HTTP, so they can all live on different machines. The Selenium
tests and the web application under test are obviously specific to a
particular project. Nevertheless, neither the Selenium remote control
nor the browser is tied to a specific application. As a matter of
fact, they provide a capacity that can easily be shared by multiple
applications and multiple projects.
我已经通过 Jenkins 将测试自动化配置为 运行。在主节点上,我有项目,并且有 selenium 独立服务器。我想创建一个以上的服务器,这样我就可以 运行 我的并行测试。我已经通过 Java 应用程序创建了从机,并将节点安装为 windows 服务。我需要在每台机器上安装 Firefox 实例和 selenium 独立服务器吗?如果是,我该怎么做?
这取决于您使用的 Selenium。如果您使用 Selenium 2.0,那么您可以设置一个集线器,您可以将其他浏览器连接到该集线器。然后,中心将根据需要将测试外包给浏览器(或节点)
这个page描述的很好
Selenium Grid builds on the traditional Selenium setup, taking advantage of the following properties:
The Selenium test, the application under test, and the remote control/browser pair do not have to be co-located. They communicate through HTTP, so they can all live on different machines. The Selenium tests and the web application under test are obviously specific to a particular project. Nevertheless, neither the Selenium remote control nor the browser is tied to a specific application. As a matter of fact, they provide a capacity that can easily be shared by multiple applications and multiple projects.