Selenium Grid Tutorial | Selenium training | Grid Tutorial | Edureka

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign [Music] ER or a skilled web developer you would definitely feel the need to test your applications for bugs and performance in all the available browsers and operating systems but with so much of dependencies in hand having not just different browsers but the different versions too it surely becomes a hefty task and most importantly all of these processes have to be automated to the most extent because in major companies individually creating test cases and pipelines would be expensive and the most obvious the least preferable method ever now this is the selenium grid an extensively used server comes to use as selenium says in its website it creates a solution of testing on applications across multiple platforms and machines now if you wish to know more about selenium grid I'll be covering the following things first we'll see what selenium grid is followed by why do we need it and then a brief section on its working and architecture following which I'll be showing an easy tutorial of how to install and run a test case which will help you create your own projects with ease if you love watching videos like these then subscribe to edrica's YouTube channel and click the Bell button to never miss out any updates also if you want to learn more about selenium after watching this session and wish to obtain selenium certification course please check the link in description box below let's start with the content for today on selenium grid and if you're liking the video do give a thumbs up to our area Channel and drop your comments or questions below as you already understood from the earlier overview selenium grid is basically a smart server which makes it easy to run tests on multiple browsers and machines this is something all major companies like Microsoft Google and JPMorgan put to use for testing their web applications as you understand what selenium grid is it would be much easier to understand why we need it at all looking at it specifically it comes in the selenium seat which also includes other softwares and features like selenium Webdriver and selenium IDE and we saw how it can support browsers like Chrome Microsoft Edge Opera Safari and all its different versions altogether apart from that it can also run those browsers on multiple operating systems creating an end-to-end testing environment being open sourced it's also freely available and gets the first date updates and developments with complete accessibility to all the information but how does all of that work let's take a look at its architecture selenium grid works in the hub and node model where one particular Hub is connected to multiple nodes and the capability to run on various machines browsers and different versions of their browsers hobags as a central point in the selenium grid which routes the test commands to the nodes it also receives test requests from the client and rolls into the required nodes Hub is launched on a single machine and with a definitive operating system and a browser with a complete testing environment can be set we'll be taking a look at how to do it in the next upcoming tutorial similarly nodes are also set up which work on the test cases they are used to set up different browsers and their versions with also the ability to set it up on multiple devices running the compatible operating systems selenium has also defined other components in the architecture which is explained in detail on its website which can be useful to run selenium in its fully distributed mode with routers sessions and Distributors well defined now that we have enough background knowledge on selenium grid let's see a complete tutorial as to how it can be installed and used in four easy steps in Step 1 let's set up the prerequisites quickly at first we need to ensure that we are running the latest version of Java or Java 11 and higher this can be downloaded from the official website then we would need to install all the needed browsers that we wish to test on for this demo I will be using Chrome and I will be running version 17. the next important part comes as the browser drivers since I'm using Chrome I have downloaded the browser version corresponding to that particular version of Chrome also do keep in mind that the versions of both driver and browser should be the same to run the selenium servers and finally I will be using Eclipse ID as this demo will be based on Java this IDE can be downloaded from official Eclipse website for the final prerequisite we would need to download the latest selenium grid server from the official selenium website for this particular demo I will be using the version 4 of selenium grid server now let's start with step 2. now for Step 2 I have created a new folder and pasted my selenium server and chrome driver that I will be using for this particular demo this might seem a very basic step but it will be very useful when we start with our step 4 that we'll be seeing in a while now for step 3 I have opened my Eclipse ID and by using Webdriver I have written down my test case also a few thing that needs to be done before this is we would need to open a new project from here we'll be scrolling down to a new Maven project from others apart from that we would also need to paste the Chrome driver that will be using in a particular folder here the particular version of selenium server that is being used is to be uploaded to the path of this project by the steps that I will be following now I can move down to my particular project name right click and go to build path from here I can move down to configure build path and on the right hand side I'll see an option called add external Jaws from here I can add the particular selenium server that I'm using click apply and close and after that let's move to step four now for step four I have come back to my particular folder that I did in Step 2. here I'll be using command prompt I'll be writing down the following code to start my selenium server now as you see as I press tab the particular folder name of selenium server shows easily this becomes very easy to find the folder and resistible process since there is only one particular machine and one browser I'll be using selling limited sandal and mode now the server is starting and it is adding that required dependencies one by one all right now that we see the server process is completed it has given us a particular address to go to now I'll be copying this particular address and moving back to my step 3. here in the hub URL I'll paste this address and after my code is complete I'll go to the file and run this as an application all right so now that I see the application is running I'll move to my Chrome browser and I'll paste the particular address that I was given by command prompt now this is my selenium address and I see the sessions are running in overview I can see that four stereotypes for Chrome has been created and in sessions my default test case is running an active you can also see that the particular web page that I put in in the code is also active here if you like this video do check out the selenium certification training course on error it would help you to get complete knowledge on everything related to selenium do give this video a like and drop down your comments happy learning I hope you have enjoyed listening to this video please be kind enough to like it and you can comment any of your doubts and queries and we will reply them at the earliest do look out for more videos in our playlist And subscribe to any Eureka channel to learn more happy learning
Info
Channel: edureka!
Views: 5,051
Rating: undefined out of 5
Keywords: yt:cc=on, selenium grid tutorial, selenium grid, selenium grid tutorial for beginners, selenium tutorial, selenium grid parallel execution, selenium tutorials for beginner, selenium testing tool, selenium testing, selenium grid with jenkins, selenium grid setup, selenium grid setup with webdriver, docker selenium grid setup, selenium testng grid tutorial, selenium framework, learn selenium, selenium grid setup tutorial, setup selenium grid on windows, software testing tools
Id: 4K3uZHt8cLY
Channel Id: undefined
Length: 8min 1sec (481 seconds)
Published: Thu Sep 28 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.