Selenium Grid ii Configuration - Setup Hub To Run Selenium WebDriver Tests

We learnt what is Selenium Grid 2 in addition to when to work it inwards PREVIOUS POST. Selenium Grid is or thus other projection of selenium thus you lot yell for to configure selenium grid 2 from scratch to execute selenium webdriver software exam cases parallel in grid. Let's endeavor to configure selenium grid In unmarried machine in addition to and thus nosotros volition run selenium webdriver tests In It.

As described In my previous post, We yell for to setup ane hub in addition to multiple nodes (number of nodes depends on your requirement) to execute selenium webdriver software exam cases parallel on selenium grid nodes.

What Is Hub?
In selenium grid, Hub is a cardinal signal which have software exam requests in addition to shipping those software exam requests to nodes for execution. In our illustration of selenium webdriver, When nosotros commencement executing software exam on selenium grid, Grid hub volition have in addition to acquire by exam requests in addition to and thus shipping them to registered node machine. We tin plow over the axe configure node on same machine or dissimilar machines too. We volition acquire to a greater extent than nigh nodes inwards upcoming post.

Setting Up Selenium Grid ii Hub
To execute selenium webdriver exam cases parallel In selenium grid, We yell for to laid upwardly selenium grid hub In your machine which volition render available capabilities in addition to configuration to webdriver tests.

Step 1 : Download Selenium Standalone Server jar
You tin plow over the axe download selenium standalone server from THIS PAGE.

Current latest version of selenium standalone server is 2.52.0 thus you lot volition acquire "selenium-server-standalone-2.52.0.jar" file. Put it inwards D: drive.

Note : If your selenium standalone server version is dissimilar than work that version give away inwards all bellow steps. Otherwise it volition non operate for you.

Step ii : Start Selenium Grid Hub
To commencement hub,
  1. Open ascendancy prompt
  2. Navigate to D: travail past times typing ascendancy D: inwards ascendancy prompt.
  3. Type bellow given ascendancy syntax inwards ascendancy prompt and press ENTER button.
java -jar selenium-server-standalone-2.52.0.jar -port 4444 -role hub

Command elements
  • selenium-server-standalone-2.52.0.jar -> Selenium standalone server jounce file version. Modify It equally per your jounce file version inwards in a higher house ascendancy if it is non 2.52.0.
  • 4444 -> Port used past times hub to psyche nodes.
Note : Please restart hub and  if facial expression upwardly whatever resultant on whatever phase during test. To restart grid ii hub
  • Press CTRL+c keys of keyboard to shutdown node.
  • Run inwards a higher house ascendancy ane time once to a greater extent than to register node alongside hub.
Verify whether grid hub is running fine
It volition demo you lot message -> "Selenium Grid hub is upwardly in addition to running." equally shown inwards bellow image.

Now you lot tin plow over the axe access selenium grid console using URL : http://localhost:4444/grid/console. Open this URL inwards whatever browser. It volition demo you lot page similar bellow.

That way selenium grid hub is configured properly in addition to laid to use. We volition acquire how to configure nodes for seleniun grid ii hub inwards NEXT POST.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM

http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post