Issue
I searched for a specific documentation which explains steps to set up the Selenium Grid with Maven, Extent Reports and Parallel Testing from scratch which will be very helpful for us. Kindly help to get a documentation or refer some websites. Thanks in advance.
Solution
I have followed below steps for setting up Selenium Grid and doing testing on multiple machines. The system I used was Mac so all commands are related to Mac OS. The project I have used was a maven project with Extent Report configured in it.
Try doing below steps for setup and see if it works for you:
- Open website seleniumhq.ord and download the selenium-standalone server version 2.53.0 (This is because the same selenium version is used in the framework)
- Next copy the downloaded jar and place it to different folder
- Then open the terminal or command prompt and type below command: java -jar (location+name of the selenium standalone server) -role hub
- java -jar /Users/abcd/Desktop/efgh/selenium-server-standalone-2.53.0.jar -role hub will be the ideal format of the command. By doing this we are making our system as HUB and now we require NODE's for performing testing.
- Once the Hub is created then open browser and type http://localhost:4444/grid/consoles
- When you open it for the first time them it will give info of selenium server being used and linked text “console”.
- The page is blank because we do not have any node till now. So next we will create Nodes. Follow below command: java -jar /Users/abcd/Desktop/efgh/selenium-server-standalone-2.53.0.jar -role node –hub http://localhost:4444/grid/register
- In place localhost we can write the IP of the machine which we want to connect.
Let me know if this helps
Answered By - Sandeep Srivastav
Answer Checked By - Pedro (JavaFixing Volunteer)