I'm new to TeamCity and Selenium Grid just trying to get my head around it. I'm trying to install Selenium grid. I am a bit confused about starting Selenium Grid. So on the Selenium site it explain to run commands:
java -jar selenium-server-standalone-2.44.0.jar -role hub
java -jar selenium-server-standalone-2.44.0.jar -role node -hub http://localhost:4444/grid/register
My question is: is this a one off command? or do I need to add these command in my build config and add them as steps in the TeamCity?
Best How To :
To answer my own question after doing some reasearch and trial and error:
Yes, this is a one off command. We don't add it into build config. Selenium Hub and nodes should get started by the scripts I mentioned in the question. You need to login to eaxh box and run the script invidualy for each box.
We do not restart our CI boxes, obviously if we did we have run the scripts again.
Probably it worth to have a some sort of a script to make sure that hub and nodes are running.
Unfortunately usually tech tutorials assume you know everything!