wiki:SeleniumGrid

Selenium Grid

Download server

$ wget http://selenium.googlecode.com/files/selenium-server-standalone-2.7.0.jar

Launch server

$ java -jar selenium-server-standalone-2.7.0.jar -role hub

Register Selenium RC compatible node

with potentially 3 firefox and 2 safari running in parallel.

java -jar selenium-server-standalone-2.7.0.jar -role rc -hub http://localhost:4444/grid/register -port 5555 \
-browser browserName=*firefox -browser browserName=*firefox -browser browserName=*firefox \
-browser browserName=*safari -browser browserName=*safari

This does not need to run on the same machine as the hub, effectively allowing to have tests run by browsers on various platforms.

To check which nodes are registered on the hub : browse to

http://hub_machine:4444/grid/console
Dernière modification il y a 13 ans Dernière modification le 4 oct. 2011 à 16:59:41)