2. Selenium Grid 4 using Docker- Hub & Node Setup with Docker Compose

Pubblicato il: 30 luglio 2023
sul canale di: Test Automation with Atul Sharma
2,734
30

Github repo- https://github.com/atulsharmacsk/Sele...

Docker networking
The Hub and Nodes will be created in the same network and they will recognize each other by their container name. A Docker network needs to be created as a first step.

Docker compose-With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

Commands-
docker network create grid

docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.10.0-20230607

docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-chrome:4.10.0-20230607

docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-edge:4.10.0-20230607

docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e SE_NODE_MAX_SESSIONS=5 selenium/node-firefox:4.10.0-20230607

docker-compose -f docker-compose.yaml up
docker-compose -f docker-compose.yaml down


In questa pagina del sito puoi guardare il video online 2. Selenium Grid 4 using Docker- Hub & Node Setup with Docker Compose della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Test Automation with Atul Sharma 30 luglio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,734 volte e gli è piaciuto 30 spettatori. Buona visione!