Become better Automation Tester - http://thetestingacademy.com New API testing Tutorials - https://scrolltest.com/ 🗣 Join Now - Mastering API Testing using Postman 2019-2020 Course : https://learnapitesting.com/join-now.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Subscribe to New Channel for Updated Videos ►► / @thetestingacademy ◄◄ Buy the Full course Here - ►► https://www.udemy.com/course/learning... ◄◄
Docker Swarm - Deploying a Selenium grid
Objective: To be able to run more than 10 browsers and using multiple machines(Server1,2).
PreReq. -
Docker Swarm requires few ports to be open for it to work. These are
-TCP port 2377. This port is used for communication between the nodes of a Docker Swarm or cluster. It only needs to be opened on manager nodes.
-TCP and UDP port 7946 for communication among nodes (container network discovery).
-UDP port 4789 for overlay network traffic (container ingress networking).
Install
First install docker on all 2 machines.eg Server 1,2
- curl -SsL https://get.docker.com | sh
Then add the ubuntu user to the docker group, so we don’t need to use sudo everytime we use the docker command
- sudo usermod -aG docker ubuntu
On Server 1
- docker swarm init --advertise-addr=82.66.x.x - Here 82.66.x.x is the public IP of the machine.
Now docker swarm is ready and nodes can connect to it, ssh into the Server 2 grid machine and run the following command
On Server 2
- docker swarm join --token SWMTKN-1-..........
- docker info
Run the following command to deploy docker swarm -- https://goo.gl/Fsq6fu
- docker stack deploy --compose-file grid.yaml tangoCharlie
To view status of the docker swarm
- docker stack ps tangoCharlie
To shut down docker swarm
- docker stack rm tangoCharlie
To debug a specific container
- docker logs f container-id
To leave docker swarm, type the following command both on manager node and worker node
- docker swarm leave —force
Slides - https://goo.gl/qjifHq
Instructions - https://goo.gl/gzhg1m
Grid Yaml - https://goo.gl/Fsq6fu
http://play-with-docker.com
Recommend Books :
- Foundations of Software Testing ISTQB Certification - https://amzn.to/2AZf21m
- Mastering Selenium WebDriver - https://amzn.to/2BXtLeY
- Selenium Framework Design in Data-Driven Testing -https://amzn.to/2B2MWCu
- Selenium Design Patterns and Best Practices - https://amzn.to/2BZkYZW
- Learning Selenium Testing Tools - https://amzn.to/2B1DteU
Join Facebook Group : Software Testing & Automation Discussion
https://www.facebook.com/groups/18560...
Blog : https://scrolltes.com
Follow at Quora : https://www.quora.com/profile/Promode-1
🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌
✅Selenium Training and Certification -
https://scrolltest.com/go/edureka
✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1
✅Programming Java -
https://bit.ly/learnjava2020-p1
✅Test Automation -
https://bit.ly/learnautomation2020
✅API Testing -
https://www.learnapitesting.com
✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com