just want to understand how does the selenium/standalone-chrome container that you run before running the automation framework image with the arguments link together. Since the framework image container and selenium/standalone-chrome are seperate containers how is the linking established between the two ? is it because of the url specified in remotewebdriver reference ? also when we are building the automation framework image why does the docker file have the mvn clean test command specified as the last step - is it to ensure that the code is running fine before the image creation ?
Yes you are bang on it is because of the URL , and while running the docker run command for standalone chrome we had setup the same port. Also you are correct is saying that we had added. The purpose of that command is to have all the dependcies added once you create image and to ensure that image build is successful Hope this answers your questions.
Could you please help me understand why the dependencies are downloaded again when you are executing mvn test, since you already have mvn clean install in your dockerfile
The command that is used inside docker doesnt execute any tests. That ensures all the required dependencies are installed properly. Gives a check that image is build without any error
Hello Nagraj the command that I am using are standard commands from Selenium Grid docker documentation. You don't need any explicit variables. Let me know if I understood it correctly.
Please refer to the below repository. github.com/veerpatil/JenkinsDemo Kindly note that it doesn't contain the docker configuration file you can refer to the video for same
Great explanation, How can we create docker compose file for this instead of commands like above
just want to understand how does the selenium/standalone-chrome container that you run before running the automation framework image with the arguments link together. Since the framework image container and selenium/standalone-chrome are seperate containers how is the linking established between the two ? is it because of the url specified in remotewebdriver reference ? also when we are building the automation framework image why does the docker file have the mvn clean test command specified as the last step - is it to ensure that the code is running fine before the image creation ?
Yes you are bang on it is because of the URL , and while running the docker run command for standalone chrome we had setup the same port.
Also you are correct is saying that we had added. The purpose of that command is to have all the dependcies added once you create image and to ensure that image build is successful
Hope this answers your questions.
Could you please help me understand why the dependencies are downloaded again when you are executing mvn test, since you already have mvn clean install in your dockerfile
If you could see the command is clean test. if you remove the clean it will skip downloading it again
This is amazing
can't we use the selenum-chromeimage in FROM command inside the docker file?
Yes you can use that provided the image has maven and java
Well mentioned.... Please add code to run selenium chrome and firefox container with framework. This would make it as full package for E2E testing
i guess it is kinda randomly asking but does anyone know a good website to watch newly released tv shows online?
Kudos! Nicely explained.
good one
Glad you liked
Nice explained!!!
Thanks
If we are generating HTML results how can I access after docker run? Is there any way to copy from docker to windows?
Yes you can do it. You can map drive from windows to docker container folder
@@veerkumarpatil Thanks, I was mount and grab the report.
@@veerkumarpatil could you please elaborate on this how to do the mapping
How to map and get html report runtime
You can use volumes in your docker compose yml file to map / mount folder
After execution in docker , i am not geting extent.html updated to results I got after running docker
why you gave the mvn commmand twice
The command that is used inside docker doesnt execute any tests. That ensures all the required dependencies are installed properly. Gives a check that image is build without any error
can i get git repo of this code base
Sir, why two containers ? I am not able to relate.
I am using Selenium Docker grid alongwith the container for your framework code.
That is the reason different containers
@@veerkumarpatil sir,can't we run the test scripts in the first container itself,by using mvn clean test?as we copied everything into it.
@@sssaamm29988 Yes you can do that but that container should have your browsers as well.
You haven’t mentioned how you’re passing the variables from terminal to docker
Hello Nagraj the command that I am using are standard commands from Selenium Grid docker documentation. You don't need any explicit variables.
Let me know if I understood it correctly.
@@veer1109 Yup, Thanks
Can i get a code of this video or a pom file of ur code?
Please refer to the below repository.
github.com/veerpatil/JenkinsDemo
Kindly note that it doesn't contain the docker configuration file you can refer to the video for same
@@veerkumarpatil can you share your gmail as i am new and stuck in different issues can you please help?
veer.1109@gmail.com
@@veerkumarpatil many thanks