How to Setup Selenium Grid On Docker

  Рет қаралды 34,880

Mukesh otwani

Mukesh otwani

Күн бұрын

In this video, we are are going to discuss How to Setup Selenium Grid On Docker.
Selenium Grid Video- • Selenium Grid Tutorial...
github.com/Sel...
Commands for Docker
docker run -d -p 4545:4444 -name selenium-hub selenium/hub
docker run -d -P -link selenium-hub:hub selenium/node-chrome-debug
docker run -d -P -link selenium-hub:hub selenium/node-firefox-debug

Пікірлер: 89
@nitishbhardwaj2053
@nitishbhardwaj2053 4 жыл бұрын
Thanks Mukesh....You and Naveen is builder of my Career
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thank you Nitish for following us :) Keep learning.
@AbhishekMishra-ru2fi
@AbhishekMishra-ru2fi 5 жыл бұрын
Great champion.Please cover all topics . Cant wait to learn everything about Docker.
@SameerKumar-yu1xi
@SameerKumar-yu1xi 5 жыл бұрын
Thank you for making docker simpler for us to learn...
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Sameer Bhai.. 🙂
@mayurchaudhari1111
@mayurchaudhari1111 4 жыл бұрын
@Mukesh Otwani Thanks for the video. I always love watching your videos. Just to Highlight the exact issue caused around 12.27 min was, a container with the same name already present and it was not running but allocated the same name which you were passing at the time of running the new container. If you would have changed name while running the new container that also could have done the task. But it's also ok that you removed the container and created a new.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks Mayur, noted your point.
@mayurchaudhari1111
@mayurchaudhari1111 3 жыл бұрын
​@@Mukeshotwani Love your dedication man. Want to meet you once for a DevOps talk.
@ramkumariyer8282
@ramkumariyer8282 3 жыл бұрын
This was very useful . I was able to setup grid with multiple chrome nodes too . But my main concern is when i was running the entire thing in VM with batch files the execution was faster but in this approach with Docker my tests are running very slow and are getting time out / element not found issues . Do you have any suggestions for that ? I created 1 HUB with Multiple (Say 10 Chrome Nodes) and executed them with batch files . They are working well but running very slow .
@jayakrishnank4001
@jayakrishnank4001 3 жыл бұрын
Hi Mukesh, How can we run docker file and execute cases through Jenkins
@nikhilgupta5721
@nikhilgupta5721 5 жыл бұрын
Thanks Mukesh. It will be very good if you share video on how to shut and start all nodes before and after the execution with running only one file before starting the testng.xml most of the time what happens you know node is not in the up conditon or it got hanged. Also try to show distributing 25 test cases considering 5 selenium-chrome-node and distributing 5 each test cases at the same time on all 5 nodes registered with hub.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Nihil have u tried Zelenium ?
@prachijoshiporwal3353
@prachijoshiporwal3353 4 жыл бұрын
To run restassured api selenium automation projects on docker ...is that possible only through selenium grid ?
@uhsay1986
@uhsay1986 2 жыл бұрын
Hi Mukesh, is vmc viewer used in corporate projects ? Or there is a different practice
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Yes Its for debugging so yes it is used.
@PianoNumberOne
@PianoNumberOne 4 жыл бұрын
Thanks Mukesh...for sharing this...
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Most welcome Pankaj.
@ashwinnetalkar2992
@ashwinnetalkar2992 5 жыл бұрын
Hi Mukesh can we use docker to run mobile test automation on a virtual machine?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Ashwin, I haven’t tried mobile part but seems can be done because they have provide images for appium too hub.docker.com/r/appium/appium/
@ashwinnetalkar2992
@ashwinnetalkar2992 5 жыл бұрын
Actually the requirement is to run mobile test on virtual machine windows 10 clonned on linux based CentOS.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Give a try Ashwin, seems interesting thing to try
@anitashaw5479
@anitashaw5479 4 жыл бұрын
Hi Mukesh, I am using windows 10 pro, and installed Docker desktop and able to download the images but could not able to link the node to running hub. I searched in Google with this error but no luck. Could you please give any hints on the same. Waiting for your reply
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Anita, please use Zalenium for auto grid setup kzbin.info/www/bejne/hnbNhnahg8unbdU
@Mohammed-yi1ku
@Mohammed-yi1ku 4 жыл бұрын
Hi Mukesh, I am using Win 10 HOME with a docker toolbox installed. Here from the docker quick terminal, I able to run the below command successfully but not able to launch the local host to see selenium-hub running... docker run -d -p 4546:4444 --name selenium-hub selenium/hub localhost:4546
@arunx20042003
@arunx20042003 4 жыл бұрын
Hi mukesh sir. In each container can i launch 5 chrome browsers? Or in 1 container i can launch only 1
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Arun, you can configure it these settings with docker file..
@ajaygawade8853
@ajaygawade8853 Жыл бұрын
Followed the steps as given in video but not able to see the nodes "The Grid has no registered Nodes yet." is displayed
@ramyaswathy1579
@ramyaswathy1579 Жыл бұрын
I too face the same issue. What is the fix?
@balamuruganvaithyanathan379
@balamuruganvaithyanathan379 4 жыл бұрын
Hi Mukesh, while I try to connect my container in VNC viewer I am getting "The requested address is not valid in its context. 10049" error. Do you have any idea to solve this issue?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
No Bala, I am not sure with this error. Are you able to trigger the test on docker container? You can also try Zalenium and here you can get video recording of test and you can directly access the containers from dashboard itself. kzbin.info/www/bejne/hnbNhnahg8unbdU
@balamurugan9199
@balamurugan9199 4 жыл бұрын
@@Mukeshotwani Thanks 🤝 this ll helpful for me to verify
@shanjaynithin2388
@shanjaynithin2388 4 жыл бұрын
Uses localhost:32769 instead of 0.0.0.0:32769, it is working.
@ajitraskar2059
@ajitraskar2059 3 жыл бұрын
@@shanjaynithin2388 Thanks.localhost worked for me
@prashantht.v8289
@prashantht.v8289 4 жыл бұрын
Hi Mukesh, Very good video as usual, And you make it so easy. I have one question wrt docker image which you installed. Does the Docker image "Selenium/hub" contain all the required software to run selenium script like "Selenium Server", " Maven" "TestNG" etc as well apart from Selenium Hub(grid).
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Prashanth, Docker will only create run time environment for you with grid installed. Maven, TestNG and jenkins are not part of it. You just need to provide hub url in your test and it will run on docker container. I would also recommend you to try kzbin.info/www/bejne/hnbNhnahg8unbdU
@prashantht.v8289
@prashantht.v8289 4 жыл бұрын
@@Mukeshotwani Thanks Mukesh,So Docker is used in selenium automation only for Grid usage and running on multiple browsers is it?
@naresh1p334
@naresh1p334 5 жыл бұрын
Hi Mukesh,as per the lecture I have installed docker on 'windows machine' and configured hub and nodes and its working fine. my question here is, can we create a node in mac machine and link to same hub which was configured in windows..if yes could you please explain me how we can achieve this? Please post the lecture links if you have any Note:We should not install a docker again on Mac machine to achieve this.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
HI Naresh, if you want to connect node in MAC then you need to have docker then only u can run docker containers. Once you have node connected to hub you can trigger through hub.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Please check this as well naresh, kzbin.info/www/bejne/hnbNhnahg8unbdU
@naresh1p334
@naresh1p334 5 жыл бұрын
@@Mukeshotwani thanks for quick response.
@pedrorodriguez628
@pedrorodriguez628 3 жыл бұрын
Thank you very much, great video.
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hey Pedro,You are welcome!
@chandananand1640
@chandananand1640 4 жыл бұрын
Hello.. Mukesh How can we specify the version of browsers in the containers
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Chandan, by default it gives latest version of Browsers. If you want to change versions then you can need to make changes in docker file and build the image and then use it. github.com/SeleniumHQ/docker-selenium
@MoMsSpace
@MoMsSpace 4 жыл бұрын
Hi mukesh, can you post a video on how to run leanft tests with docker.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Richa, never worked on leanft so do not have any idea on this 🙁
@bhadmusautomates
@bhadmusautomates 4 жыл бұрын
Hi Mukesh, Please I see that this video covers setup with Java. I need a guide on how to setup with Python. Can you help with the things I might need to change?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Ademola, I have not tried with python yet. I will try to make video on python too.
@shivamgoyal4751
@shivamgoyal4751 3 жыл бұрын
Can I launch chrome and Firefox both in a single container?
@shivamgoyal4751
@shivamgoyal4751 3 жыл бұрын
In my case, I need to launch Chrome and Firefox in the same class to check synchronization. So I mentioned the same URL(http:IPAddress/wb/hub) in the RemoteWebdriver field for both Chrome and Firefox, and it launched chrome in one RealVNC server and Firefox in another. Now I need to execute my class(without any change) 50 times in parallel, what will you suggest?
@KhushbooVerma2810
@KhushbooVerma2810 5 жыл бұрын
Hello, I am searching something where I can run .bat file which is in remote machine(to create node) directly from the local machine. Instead of going to the remote machine n initiating it manually. not allowed to download any other application for this, can you please help with the cmd to run.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Khushboo, what is your exact requirement. I mean you want to use docker here? running batch file from jenkins then you can create slave in Jenkins and provide the path of batch file.
@KhushbooVerma2810
@KhushbooVerma2810 5 жыл бұрын
@@Mukeshotwani i have not tried Jenkins yet. Will try it now. Actually I have VDI where i manually run cmd to create node after creating hub . And then start the automation script to run parallel execution on node machine. Just wanted to know if there is any cmd ao that i can create node in vdi machine instead of doing it manually. Hope i am clear now 🙈
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Khusbhoo you can run cmd commands in Jenkins as well or you can run batch file from jenkins. Quick question- Is this mandatory for you to run test on VDI machine? Docker makes this task easy by creating container.
@KhushbooVerma2810
@KhushbooVerma2810 5 жыл бұрын
@@Mukeshotwani Thank you so much mukesh for your replies. It's really helpful. I will try i i can install docker in my machine(due to ODC restrictions). If that can be done VDI won't be required. Thanks a lot. 🤗
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Great.. Let me know if any help required. Good night.
@ramanrayat
@ramanrayat 5 жыл бұрын
Hi Mukesh it is nice tutorial can you please help me for reporting part, how to generate/save report and screenshot ?
@9745754904
@9745754904 4 жыл бұрын
Hi mukesh i tried this and got 2 doubts.... 1. My selenium. Test taking to. Much time to execute on the containers.. Wat can be the reason? 2. As in the video ,selenium Tests is running in linux OS. Wat if I Need to do in mac, ununtu OS.
@laxmanbinawade4278
@laxmanbinawade4278 4 жыл бұрын
Hi Do you get any solution for much time to execute on container? I also face same issue
@PianoNumberOne
@PianoNumberOne 4 жыл бұрын
I tried all the steps on Windows 10, every thing worked fine. Onlything that differed was, in vncviewer i had to enter localhost: to connect to the node.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks Pankaj will add this point in the description. Also check Zalenium which is autoscalling containers.
@PianoNumberOne
@PianoNumberOne 4 жыл бұрын
@@Mukeshotwani sure will check...
@PianoNumberOne
@PianoNumberOne 4 жыл бұрын
@@Mukeshotwani I have started using Zalenium and it feels like i am using mini version of BrowserStack or SauceLab. Awesome !
@PianoNumberOne
@PianoNumberOne 4 жыл бұрын
@@Mukeshotwani I have one query , how to see the live execution of test cases from VNC Viewer. Can i see it ? Or only i can see post execution in the localhost:4444/dashboard/# ? I could not get the port number of the nodes...I am running all my Tests on Windows 10
@PianoNumberOne
@PianoNumberOne 4 жыл бұрын
Also , i have one query, how to share the zalenium execution dashboard with my team, on slack or email? so that they can see the execution dashboard. Currently i am sending the html report (TestNg/Extent Report) from Jenkins ( post execution)
@jyotipravadas659
@jyotipravadas659 Жыл бұрын
After running this 3 command getting container id but unable to open the grid console on my browser... The grid has no registered node yet.... How to resolve this issue
@sdet-softwarehub
@sdet-softwarehub 9 ай бұрын
i guess you are using grid 4 ---refer link kzbin.info/www/bejne/qKqxd5Slp6-Uia8
@rajendramahapatra3293
@rajendramahapatra3293 5 жыл бұрын
Most of the users are using windows operating system. Could you please upload one video how to install docker on windows operating system and do all these configurations?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Yes Rajendra uploading soon.
@vitalii3236
@vitalii3236 5 жыл бұрын
How to run on this UI tests? Receive an errors
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Vitalii, What error you are getting.. You can run Selenium test or any other test which support Selenium Grid.
@cyrilgeorge870
@cyrilgeorge870 5 жыл бұрын
It will be nice if u show implementing bdd framework selenium grid with the help of docker.most of the utube channels using testng cucumber getting ignored
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Sure George, I will start Cucumber series just after this. Docker basically providing platform so when we run our BDD framework as well current docker setup will remain same.
@JitendraKumar-lr3vq
@JitendraKumar-lr3vq 5 жыл бұрын
hi mukesh ..when i am giving docker container port on vmc viewer i am getting following error : the requested address is not valid in its context (10049) i have mailed you the screenshots ,could you plz look into it .
@bharatapar3937
@bharatapar3937 5 жыл бұрын
Try : localhost:32769 in vncviewer.
@JitendraKumar-lr3vq
@JitendraKumar-lr3vq 5 жыл бұрын
@@bharatapar3937 i tried its saying connection refused by computer i am still facing same issue could not open docker container port thrugh vnc viewer
@9745754904
@9745754904 4 жыл бұрын
Hi. Mukesh. How to. Run selenium. Grid. On. Docker in Mac OS,
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Jino, commands are same only thing is we need to install docker on MAC. docs.docker.com/docker-for-mac/install/
@9745754904
@9745754904 4 жыл бұрын
@@Mukeshotwani actually I have windows 10 desktop and I. Need to. Use selenium. Grid on Mac container.. Is it possible..?
@geladamoria425
@geladamoria425 3 жыл бұрын
thanks a lot
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Welcome mate
@avinashyerramsetti2769
@avinashyerramsetti2769 4 жыл бұрын
$ docker run -d -P -link selenium-hub:hub selenium/node-chrome-debug C:\Program Files\Docker\Docker esources\bin\docker.exe: invalid reference format. See 'C:\Program Files\Docker\Docker esources\bin\docker.exe run --help'. @mukhesh, whats the mistake im doing
@raichandrarb
@raichandrarb 4 жыл бұрын
I am also getting the same error... Please let us know the reason @Mukesh otwani
@Mohammed-yi1ku
@Mohammed-yi1ku 4 жыл бұрын
@@raichandrarb @avinash try this command: $ docker run -d -P --link selenium-hub:hub selenium/node-chrome-debug
@rayaprasanna
@rayaprasanna 3 жыл бұрын
I guess the right command is " $ docker run -d --link selenium-hub:hub selenium/node-chrome-debug" , please try this, it worked for me.
@andrewgiftson8949
@andrewgiftson8949 3 жыл бұрын
not working
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Andrew can you provide more details on what is not working?
@kaidouz7756
@kaidouz7756 2 жыл бұрын
Hello ser, I need you help with some questions about client side + server hub + nodes, do you have an email that I can contact you? that would be really helpfull. Thanks
How To Execute Selenium Test on Docker Container
10:25
Mukesh otwani
Рет қаралды 68 М.
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 27 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,8 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 59 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
#4 - Run Selenium Test on AWS EC2 Machine using Docker
41:36
Naveen AutomationLabs
Рет қаралды 51 М.
Selenium Grid Setup Using Docker
26:36
AUTOMATION WITH PRIYANKA
Рет қаралды 1,2 М.
JMeter Full Course Masterclass | Step by Step for Beginners | Raghav Pal |
3:31:26
Automation Step by Step
Рет қаралды 1 МЛН
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 27 МЛН