selenium webdirver之ruby-grid使用步骤

简介:

网上n多都没有怎么使用的步骤,都是些说明,官网上找了半天也木有,杯具啊,先分享下吧

Hub:

local machine

2 Nodes:

local machine: 10.1.80.103

remote virtual machine : 10.1.80.135

Configuration steps:

1.       1. Dowload the lastest selenium Grid2 (selenium-server-standalone-2.11.0.jar ) from web site: http://code.google.com/p/selenium/downloads/list

2.       2. Put selenium grid2 in a suitable local location(eg: selenium grid home in my machine: C:\xlz\tools\seleniumGrid), and copy it to remote node machine as well.

3.       3. Start the selenium grid2 Hub in selenium grid home command :

>java -jar selenium-server-standalone-2.11.0.jar -role hub

4.       4. Check the hub status in http://localhost:4444/console

St   5. Start the selenium rc in Hub machine under selenium Grid home commands:

>java -jar selenium-server-standalone-2.11.0.jar -role rc -hub http://localhost:4444/grid/register-host localhost -port 5555

>java -jar selenium-server-standalone-2.11.0.jar -role rc -hubhttp://10.1.80.103:4444/grid/register -host 10.1.80.135 -port 5556

5.       6. Start the selenium rc in Remote machine(test Node) command: (don’t forget)

>java -jar selenium-server-standalone-2.11.0.jar -role rc -hubhttp://10.1.80.103:4444/grid/register -host 10.1.80.135 -port 5556

6.       7. Execute test scripts by Ant task under scripts home:

>cd C:\Users\Xlz\workspace\TestProject

>ant –f testbuild.xml

 

Now our testing starting ! All of test result will be collected in Hub. Enjoy it! 










本文转自 小强测试帮 51CTO博客,原文链接:http://blog.51cto.com/xqtesting/808518,如需转载请自行联系原作者
目录
相关文章
|
IDE 测试技术 开发工具
|
2月前
|
Ruby
|
2月前
|
Ruby
|
1月前
|
数据采集 Web App开发 数据处理
Ruby网络爬虫教程:从入门到精通下载图片
Ruby网络爬虫教程:从入门到精通下载图片
|
2月前
|
JSON 数据格式 Ruby
|
2月前
|
JSON Ubuntu Linux

热门文章

最新文章

相关实验场景

更多