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! 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章