Login

Login
  • Register
  • VectorDesign blog

    Testing Automation and general Tech Geek stuff

    Selenium Grid

    Posted in Selenium on 9 January 2016 by vectordesign

    Grid allows you to :

    • scale by distributing tests on several machines ( parallel execution )
    • manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers / OS.

    Selenium Grid allows us to run multiple instances of WebDriver or Selenium Remote Control
    in parallel. It makes all these nodes appear as a single instance, so tests do not have to
    worry about the actual infrastructure. Selenium Grid cuts down on the time required to run
    Selenium tests to a fraction of the time that a single instance of Selenium would take to run
    and it is very easy to set up and use.Vectordesign

     

    The Hub runs the test scripts on each Node depending on the test requests (Requesting specific set ups )

    Creating the grid

    We first need to start the selenium server where we are going to run the tests.

      1. Download ( if you haven’t already the selenium server stand alone jar file from here)
      2. Navigate to the downloaded file, to start the hub
    java -jar selenium-server.jar -role hub
      1. copy the jar file to the terminals (nodes) and register them at the hub
    java -jar selenium-server.jar -role node  -hub http://localhost:4444/grid/register

    Leave a Reply