Question

Is there a good tutorial or does anyone have experience with setting this up ? I have a Testsuite.html which launches my tests in one browser atm. This is done in the integration-test lifecycle by the maven selenium plugin. I want to run my tests on multiple browsers. I couldn't find any documentation about selenium grid + maven. I hope somebody can help me.

Thanks in advance, kukudas

Was it helpful?

Solution

Selenium Grid and maven are really not much different than Selenium and maven.

Grid is basically a drop-in replacement for selenium-rc. In our current setup we let the automated build system use Grid. It does this by simply changing the selenium-rc url (which is normally localhost:4444) to the grid's url.

Additionally we specify the browser string (*firefox, *iexplore, *opera or whatever) as a system property on the mvn command line, which we pick up when we initialize the selenium client libraries in our code.

So the way we've done it we basically set up 4 different build projects with different browser strings.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top