Skip to content

Instantly share code, notes, and snippets.

@hannic
Created December 2, 2012 19:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hannic/4190589 to your computer and use it in GitHub Desktop.
Save hannic/4190589 to your computer and use it in GitHub Desktop.
selenium grid setup (mac os - ubuntu - windows)
Supports up to 5 concurrent tests from:
1. On hub machine (Mac OS)
java -jar selenium-server-standalone-2.21.0.jar -role hub
2. On node machine (Ubuntu)
java -jar selenium-server-standalone-2.21.0.jar
-role webdriver
-nodeConfig nodeConfigUbuntu.json
-hub http://10.0.0.42:4444/grid/register
-Dwebdriver.chrome.driver=C:\Users\Reva\Desktop\SeleniumGrid\chromedriver.exe
-browser browserName=chrome,platform=WINDOWS -port 5557
(BRoWSER NAME and PlATFOM MUST match with the JAVA Code Capability.setBrowserN
ame, Capability.SetPlatform (for the Chrome and FF Platform is Optional. )
----------- nodeConfigUbuntu.json -----------
{
"capabilities":
[
{
"browserName":"firefox",
"maxInstances":3
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":30000,
"host":"10.0.0.25",
"port": "5557",
"maxSession":5,
"url":"http://10.0.0.25:5557/wd/hub",
"hubHost":"10.0.0.42",
"hubPort":4444
},
}
----------- // nodeConfigUbuntu.json -----------
http://localhost:4444/grid/console
Grid Hub 2.21.0
DefaultRemoteProxy
listening on http://10.0.0.25:5557
test session time out after 30 sec.
-------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment