Docker Compose to Set up Selenium Grid | Parallel Test in Unix Container
#DockerCompose #DockerComposeSelenium #RunParallelTestDocker #DockerComporeParallelTest
In this video we'll learn how we set up selenium grid using docker compose and execute our test script in multiple container.
Video content:
What is docker compose
Why we need it
Using Docker compose to creat selenium Grid
Run test in parallel in docker compose grid
Q:
How to set up docker compose in selenium
How to run test in parallel
How to view execution in container
How to execute test using docker compose
Commands:
Docker-compose version
Docker-compose up -d
Docker-compose -f "filename" up -d
Intro:
Compose is a tool for defining and running multi-container Docker applications. 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. To learn more about all the features of Compose, see the list of features.
Linkedin : / aditya-kumar-roy-b3673368
Facebook: / specializeautomation
Пікірлер: 8
Hi, Thanks for the video. I have a question, what if I want to use port 4443 for hub? Or in other words how do I run 2 different yml files for 2 different projects?
Can you run test ng tests parallel in Unix box? I have gave thread count as 2 and in the xml I have provided 2 tests. Some reason Unix is picking one thread at a time. I read in Selena website that Unix will allow one browser at a time. If u give multi thread second thread is halting the first browser and executing the second . Once second is done switching back to first one. By then the first session is getting expired and test is failing. Do u have any suggestions. Does Unix allow Multiple browsers to launch at a time. I am trying headless.. as it’s pure linux concourse container.
I am unable to see the port number when I run the deubg images of chrome and firefox when I am trying to see the port using docker ps -a. Due to this I am unable to see my scripts running on the vnc viewer. Can you please help me with that...
@SpecializeAutomation
5 жыл бұрын
Could you please show me the screenshot and logs necessary. So that I can check it and give u fix.
Hi I can see u have define volume only for two images .Do we have to define voumne for all four services, what is the logic here?
@SpecializeAutomation
4 жыл бұрын
Could you please be more specific about how you want to implement docker for your current requirements. I can help you on that
Hi Aditya, at 13:03, all browsers are running on Linux, none on windows, why? Can you please comment how can I have 1 browser on windows also?
@SpecializeAutomation
5 жыл бұрын
You can create and run also in windows container using windowsservercore image.