I am running selenium webDriver with the maven surefire plugin and using testNG and have been able to parallelize my tests reusing one JVM instance. for some reason I am unsure
If you are using a Selenium Grid, then it makes sense that your tests are being limited to 5 at a time. The factory Selenium Grid properties allow a grid to run:
WebDriver: - 5 Google Chrome - 5 Firefox - 1 IE
Legacy (RC): - 5 Google Chrome - 5 Firefox - 1 IE
You can change these values using a node configuration json file.
{
"capabilities":
[
{
"browserName": "*chrome",
"maxInstances": 2,
"seleniumProtocol": "Selenium"
}
... (any other browser capabilities here)
],
"configuration":
{
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 10,
"port": 5555,
"register": true,
"registerCycle": 5000,
"hubPort": 4444
}
}
Then when running your nodes:
java -jar selenium-server-standalone.jar -role node -nodeConfig nodeConfig.json ...