Selenium Automation Framework Tutorial - Setup Selenium Grid on Docker with Cross Browser Testing

Опубликовано: 19 Июль 2020
на канале: QASCRIPT
1,927
29

Learn how to setup Selenium Grid with Docker Containers and run parallel Selenium tests across multiple browsers and Operating Systems. Following will be covered in this video:
What is Selenium Grid?
When to use Grid?
What are the different components of Selenium Grid?
How to setup Selenium Grid in Docker
View test execution on remote machines using Vnc Viewer

Github Repository:
https://github.com/patebija/selenium-...

Docker Commands:
//Pull Selenium-hub image using command
docker pull selenium/hub

//Pull FireFox Debug image using command
docker pull selenium/node-firefox-debug

//Pull Chrome Debug image using below command
docker pull selenium/node-chrome-debug

//Check all the images are downloaded
docker images

//Running Selenium-hub inside Docker
docker run -d -p 4446:4444 --name selenium-hub -P selenium/hub

//Browser Configuration
localhost:4446/grid/console

//Check Selenium Hub container has started
docker ps -a

//Linking chrome image to Selenium-hub
docker run -d -P --link selenium-hub:hub selenium/node-chrome-debug

//Linking FireFox image to Selenium-hub
docker run -d -P --link selenium-hub:hub selenium/node-firefox-debug

//Verify Selenium Hub and node are running
docker logs "Selenium-hub ContainerId"

VNC Viewer Password: "secret"