Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
417 views
by Contributing Tester (14 points)
retagged by
I wanted to have nodes that are browser specific. Meaning, one node should be configured to always use Chrome and the other should use IE.

I wanted to know how to setup a grid so that when I can run a particular test suite and the grid should automatically decide and select the correct browser that we require.

1 Answer

1 like 0 dislike
by Expert (572 points)
selected by
 
Best answer

When you setup the node, just specify one browser. The grid will automatically redirect the test execution commands to that particular node. No other setup is really required.

Say you have a grid server and 3 nodes. One node is hosting Firefox, another one Chrome, and the last one Internet Explorer. Below will be your setup.

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

And node 1 configuration (chrome)

java -jar selenium-standalone-server.jar -role webdriver hub http://<grid_ip>:<grid_port>/wd/hub  -browser browserName=chrome

Same way, you can start node with -browser argument and specify your browser.

by Contributing Tester (14 points)
Thank you, Sunil. That worked.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...