Download <<selenium-grid-hub-standalone-1.0.8.jar>> file and set the classpath for the same. Open cmd prompt and type the below command:

C:\> java  com.thoughtworks.selenium.grid.hub.HubServer


This will start the SeleniumHubServer on default port which is 4444 and with default "Configured Environments". Once the HubServer is started successfully, the console is accessible at: 

http://localhost:4444/console


To start HubServer on specific port and to defined our own "Configured Environments", follow the below steps:

- Right click on <<selenium-grid-hub-standalone-1.0.8.jar>> and choose to extract the files into <<selenium-grid-hub-standalone-1.0.8>> folder.
- Open "selenium-grid-hub-standalone-1.0.8" folder and open the file <<grid_configuration.yml>>
- Change the "Port:" to 5555 (or as per requirement)
- In the "environments" section, the "Name" can be modified to appropriate name. EX:  
       - name:    "Firefox on Windows"
         browser: "*firefox"

- "remoteControlPollingIntervalInSeconds" and "sessionMaxIdleTimeInSeconds" can also be modified as per the requirement.
- Save the changes.
- Now build a new jar file.
To build a jar file:
  1. open cmd prompt.
  2. Change directory to the folder &lt;&gt;: cd selenium-grid-hub-standalone-1.0.8
  3. Use below command to make the jar file:
    jar -cf <<jar file name>> <<files to jar>>

    Ex: jar -cf
    selenium-grid-hub-standalone-1.0.8.jar *.*
  4.  The above command will create a new jar file with the name selenium-grid-hub-standalone-1.0.8.jar into the folder <<selenium-grid-hub-standalone-1.0.8>>
  5. Change the classpath to point to newly created jar and start the HubServer. Observe that the HubServer is started on the new port and modified "Configured Environments" are listed.
Share
Related Documents
  1. Registering Selenium RemoteControl with HubServer through command line (1142)
  2. Lets Automate and Selenium introduction (655)
  3. selenium conf 2012 videos (650)
  4. Selenium Simplified - Automated Web Testing with Java and Selenium RC (3123)
  5. Perform while loop in the Selenium IDE (1636)
  6. Selenium User guide (1152)
  7. Selenium Tutorial (1636)
  8. Selenium Documentation (1783)
  9. Selenium Regression Testing Part II – Tips and Tricks (648)
  10. Selenium Simplified Junit Preview (1013)
  11. Using Selenium to automate and test web interactions (773)
  12. Test Automation using Selenium (744)
  13. Automated Web Testing with Selenium for beginners (1128)
  14. Tutorial document about advanced Selenium (1119)
  15. [Selenium] The Magic of Testing - Presentation (641)
  16. Selenium Tutorial Document for Beginner (2365)
  17. Knowledge Guide for Selenium (2148)
  18. The Agile Open Source Way To Load Test, Scalability Test, and Stress Test In Your Organization (1457)
  19. [Ebook] Selenium 1.0 Testing Tools Beginner's Guide (4390)
  20. Automation Testing using Selenium & Java & Junit (1466)