Run selenium4 tests in Dockers using docker compose file
HTML-код
- Опубликовано: 20 сен 2024
- This video will explain
How to run selenium UI tests into docker containers using docker-compose yml file.
Containers can be chrome, firefox or edge browser.
You will learn how to use selenium's own docker containers called as standalone dockers where you don't need to register the node to hub.
To run this yml file, navigate to project directory in terminal or command prompt and enter below line -
docker-compose -f docker-composeFileName.yml up
Selenium java complete series -
bit.ly/qavbox-...
Subscribe to this channel -
bit.ly/youtube...
Blog posts -
qavalidation.com
Make me awake & feel fresh always, so I can bring lot's of interesting topics for you all, Buy me a coffee?
buymeacoffee.co...
Thank you for watching!
great 👍
Really nice bro!
Keep great sharing, thank you a lot! (bow)
If i am using Gitlab services where I am creating Selenium and front end container then running pipeline > Test get started but it fails with connection refused error
thank you
Hello..where to check that what version of hub/node/chrome is installed on our machine like- selenium/hub:4.7.1-20221208
As I see they always use the latest versions while creating the docker images, so we can't see the exact browser version on docker file.
But I think you can fetch the browser version using driver.getcapabilities method.
Could you please make one video how do read data from JSON sir ?
Sure, stay tuned!
Please take from 3 to 5 test cases how do read data in framework sir ?
How to get the terminal you are running the commands in eclipse? I tried creating a new connection for the docker toll in eclipse supposing the terminal u r using is from that however creating a connection for docker in eclipse was also not sucessfull. could you please advice on the above.
You can use this plugin from marketplace to open the terminal from eclipse - marketplace.eclipse.org/content/tm-terminal
@@qavbox Thank you very much
Can I ask you to review my dockerfile and docker compose? I am getting error everytime and nothing is helping
Yes sure, please share
@@qavbox thank you for answering, shared
I put here files content but it was deleted, can you please share telegram or smth else to send?
@@user-un3uc4jh8q you can share the git repo link here or share using Google docs link with your docker compose content
@@qavbox I shared google docs, it also was deleted
I would like tests to be run on 2 containers: one for chrome, one for selenium tests
One for selenium test means?, all our tests we run with selenium
@@qavbox one which contains chrome driver image, and the other for executing selenium tests
@@user-un3uc4jh8q you need to have the chrome driver on the same container running the selenium tests.
Hi what password you are writing in noVNC localhost:7900
Password is "secret" by default