Session 10 - Setup Docker Selenium Grid | Run Automation on Docker Containers | Selenium on Docker

preview_player
Показать описание
Automation Framework Design Series - Selenium With Java.
▶️ In this session 10, we will see step by step process for "How to Setup Docker Selenium Grid and Run automation on docker containers". Selenium Tests Parallel execution on Docker Selenium Grid
Steps -
* Install docker application on your system
* Start the docker desktop app
* Setup Docker Selenium Grid
* Create and run Hub and Node containers using docker compose
* Implement code changes in Framework for RemoteWebDriver
* Run automation and do live monitoring
* Scale the containers to run tests in Parallel Mode

1. Use docker commands

Hub-- docker run -d -p 4445:4444 --net grid4network --name seleniumHub selenium/hub:4.9.0

Node-- docker run -d -p 4446:5900 --net grid4network -e SE_EVENT_BUS_HOST=seleniumHub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 --shm_size=2gb --name chromeNode1 selenium/node-chrome:4.9.0

docker-compose up

For different file name use this command-

Thanks for watching! Happy coding and automating!

▶️ If you have any queries , questions or suggestions, please add in the comment. I will be happy to hear suggestions and feedback from you so that I can improve the same. Help your friends to learn automation by suggesting the channel. Thanks
======================================
****************AJ AUTOMATION**************
======================================
Hi guys, Please share and Like the content whichever you find informative to reach more beginner candidates learning Test Automation. Thanks for your Support !!

🔔 Learn automation from basic !! 🔔

✅ Let's Learn the Concept in 5 To 10 Mins :=

✅ Selenium series videos Playlist :=

✅ Maven Tool videos playlist :=

✅ Selenium WebDriver Exceptions Playlist :=

✅ Selenium Grid With Docker:==

✅ Jenkins Tool Series :==

✅ Upload and Download Files in Selenium :=

✅ Excel and CSV files operations :=

✅ Java Language Concepts :=

✅TestNG Framework Videos:=

✅ Become Master in Xpath:=

✅ Protractor series videos playlist :=

✅ Recent Uploads :=

⚡️ Thanks for your support !! ⚡️

======================================
**************** Thanks for watching !!**************
======================================

⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️

#Automation
#testautomation
#SeleniumWebDriver
#javatestingframework
#seleniumautomachinetesting
#seleniumwebdriver
#seleniumautomation
#testing
#seleniumtutorialforbeginners
#automationframework
#seleniumframework
#softwaretesting
#java
#testng
#eclipse
#maven
#selenium4
#seleniumtutorials
#seleniumjava
#seleniumautomation
#docker #dockertutorial
Рекомендации по теме
Комментарии
Автор

Hi Sir,

In my framework I did a setup to execute selenium script into docker containers.

Here when I run my testng.xml file then all the scripts are executing successfully into docker containers.

But the problem is when I run same script using maven command I.e mvn clean test then it's throwing an errors.

Do you know why?

If possible could you please try to execute script into docker container using maven command and see if it's executing successfully or not?

Thanks

priteshkhambekar