Selenium Grid allows to access to run the test cases with different machine with multiple browser. It works as a parallel execution. Selenium grid is automated testing execution on Distributed systems in parallel.
Architecture of Selenium Grid:
Selenium grid consists one hub which control all the nodes which is registered on hub.Node is working as a port and each node is capable to open multiple browser.Every single machine working as a hub and a hub can have multiple nodes.
Installation of Selenium Grid:
For installing the selenium grid we have to install selenium server jar file. Now we will start the hub configuration in your local machine, For making the hub we open the terminal type the command.
- java -jar selenium-server-standalone-2.45.0.jar -role hub
Now we open the browser and type http://localhost:4444 we will get the selenium grid screen.
Now we take next step we will make nodes. By default a single node will work as a operating system same as host and will five firefox, chrome Instance and one Internet Explorer. Now we open the terminal and follow the command.
- java -jar selenium-server-standalone-2.53.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 5555
Code for Selenium Grid:
1 thought on “Selenium Grid 2-Parallel Execution2 min read”
your information is really well explained and i got more knowledge about your postings , it is really helpful thus it is nice.
Comments are closed.