硒网格和Jenkins配置 [英] Selenium grid and Jenkins configuration

查看:243
本文介绍了硒网格和Jenkins配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为Jenkins下载了Selenium Grid插件,并且有两个正在运行的节点:

I have downloaded Selenium Grid plugin for Jenkins, and I have two nodes running:

java -jar selenium-server-standalone-2.41.0.jar -role节点-hub http://jenkins.bla.bla.com:4444/grid/register .

在Jenkins的"Selenium Grid"选项卡中,我可以看到两个连接的节点:

In Jenkins, in Selenium Grid tab I can see the two nodes connected:

http://xxx.xxx.xx.xxx:5555 (* firefox 5/5,* googlechrome 5/5,* iexplore 1/1,chrome 5/5,firefox 5/5,Internet Explorer 1/1)

http://xxx.xxx.xx.xxx:5555 (*firefox 5/5, *googlechrome 5/5, *iexplore 1/1, chrome 5/5, firefox 5/5, internet explorer 1/1)

http://xxx.xxx.xx.xxx:5555 (* firefox 5/5,* googlechrome 5/5,* iexplore 1/1,chrome 5/5,firefox 5/5,Internet Explorer 1/1)

http://xxx.xxx.xx.xxx:5555 (*firefox 5/5, *googlechrome 5/5, *iexplore 1/1, chrome 5/5, firefox 5/5, internet explorer 1/1)

当我尝试构建项目时,没有任何反应,因为jenkins找不到任何已连接的节点.当您不在网格中运行且未连接任何从属节点时,这是相同的消息:

When I try to build my project, nothing happens, because jenkins doesn't find any connected nodes.It's the same message when you're not running in grid, and no slaves are connected:

#361(正在等待-等待下一个可用的执行程序)

#361 (pending—Waiting for next available executor)

我想问以下问题: 1.当我们尝试在硒网格上运行时,是否需要运行用于启动从属主连接的脚本?

I would like to ask the following: 1.Do we need to run the the script that initiates the slave-master connection when we try to run on selenium grid:

java -jar slave.jar -jnlpUrl

java -jar slave.jar -jnlpUrl

2.我们是否需要在jenkins上安装 selenium-server-standalone-2.41.0.jar ,还是该插件随附?

2.Do we need to have the selenium-server-standalone-2.41.0.jar installed on jenkins, or does it come with the plugin?

3.整个过程中是否有一个示例?

3.Is there an example of somehow with the whole process?

推荐答案

Selenium服务器不随插件一起提供.如果您正在寻找如何进行全部设置的示例,请在

Selenium server doesn't come with the plugin as far as I am aware. If you're looking for an example of how to set this all up, there is quite a nice PDF available at https://www.packtpub.com/sites/default/files/downloads/Distributed_Testing_with_Selenium_Grid.pdf showing how to set up Selenium grid and configure Jenkkns to work with it.

希望这会有所帮助.

这篇关于硒网格和Jenkins配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆