GRID SETTINGS:
Step#1: First Step is to create hub using selenium server standalone jar . So open command prompt and fire command .
Step#2: Second step is to create nodes. Since I am doing it on same system so I will open another instance of cmd prompt and fire command, if you are creating nodes of different machines then you have to open command on each machine and do the same thing. When using this grid with testNG then in that case you fire command in the beginning to create nodes first.
Step#3: Now access the grid console and view the node details:
Interview Ques: On grid console you get the list of instances of each browser which u can run on a particular node parallely. Like for this case we can run 5 instances of chrome and firefox and one instance of ie. If u give more than that it is going to wait for erlier instances to finish and then it will run test cases based on available instances.
Step#4: Now execute the test cases. In this in url you have to pass port based on the nodes.
Note: Sometime in IE u get error like: org.openqa.selenium.NoSuchWindowException: Unable to get browser. In this case follow steps : https://knowledgeworldforyou.wordpress.com/2015/11/16/unable-to-get-browser-error-in-selenium-or-how-to-get-browser-in-selenium-webdriver/
Cross Browser testing using sauce labs
No comments:
Post a Comment