Create Docker Image Of Test Automation Framework

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 40

  • @prasadreddy443
    @prasadreddy443 ปีที่แล้ว

    Great explanation, How can we create docker compose file for this instead of commands like above

  • @notafraid789
    @notafraid789 2 ปีที่แล้ว +1

    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 ?

    • @veerkumarpatil
      @veerkumarpatil  2 ปีที่แล้ว

      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.

  • @nitinkrishna7632
    @nitinkrishna7632 5 หลายเดือนก่อน

    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

    • @veerkumarpatil
      @veerkumarpatil  5 หลายเดือนก่อน

      If you could see the command is clean test. if you remove the clean it will skip downloading it again

  • @deepeshnair
    @deepeshnair 7 หลายเดือนก่อน

    This is amazing

  • @rahilkumar3558
    @rahilkumar3558 7 หลายเดือนก่อน

    can't we use the selenum-chromeimage in FROM command inside the docker file?

    • @veerkumarpatil
      @veerkumarpatil  7 หลายเดือนก่อน

      Yes you can use that provided the image has maven and java

  • @lajishlakshmanan
    @lajishlakshmanan 4 ปีที่แล้ว +1

    Well mentioned.... Please add code to run selenium chrome and firefox container with framework. This would make it as full package for E2E testing

    • @koabryson7204
      @koabryson7204 3 ปีที่แล้ว

      i guess it is kinda randomly asking but does anyone know a good website to watch newly released tv shows online?

  • @MayukhNath
    @MayukhNath 3 ปีที่แล้ว

    Kudos! Nicely explained.

  • @saravanakumar6423
    @saravanakumar6423 2 ปีที่แล้ว

    good one

  • @abhishekmahajan8148
    @abhishekmahajan8148 4 ปีที่แล้ว +1

    Nice explained!!!
    Thanks

  • @GaneshHSirsi
    @GaneshHSirsi 3 ปีที่แล้ว

    If we are generating HTML results how can I access after docker run? Is there any way to copy from docker to windows?

    • @veerkumarpatil
      @veerkumarpatil  3 ปีที่แล้ว

      Yes you can do it. You can map drive from windows to docker container folder

    • @GaneshHSirsi
      @GaneshHSirsi 3 ปีที่แล้ว

      @@veerkumarpatil Thanks, I was mount and grab the report.

    • @sarthakdeshpande24
      @sarthakdeshpande24 2 ปีที่แล้ว

      @@veerkumarpatil could you please elaborate on this how to do the mapping

    • @sanjaytakke7780
      @sanjaytakke7780 2 ปีที่แล้ว

      How to map and get html report runtime

    • @veerkumarpatil
      @veerkumarpatil  2 ปีที่แล้ว

      You can use volumes in your docker compose yml file to map / mount folder

  • @atulpungal819
    @atulpungal819 2 ปีที่แล้ว

    After execution in docker , i am not geting extent.html updated to results I got after running docker

  • @SuyashDwivedi-e8f
    @SuyashDwivedi-e8f 8 หลายเดือนก่อน

    why you gave the mvn commmand twice

    • @veerkumarpatil
      @veerkumarpatil  8 หลายเดือนก่อน

      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

  • @webtestingui7187
    @webtestingui7187 2 ปีที่แล้ว

    can i get git repo of this code base

  • @sssaamm29988
    @sssaamm29988 2 ปีที่แล้ว

    Sir, why two containers ? I am not able to relate.

    • @veerkumarpatil
      @veerkumarpatil  2 ปีที่แล้ว

      I am using Selenium Docker grid alongwith the container for your framework code.
      That is the reason different containers

    • @sssaamm29988
      @sssaamm29988 2 ปีที่แล้ว

      @@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.

    • @veerkumarpatil
      @veerkumarpatil  2 ปีที่แล้ว

      @@sssaamm29988 Yes you can do that but that container should have your browsers as well.

  • @NagarajCruze
    @NagarajCruze 2 ปีที่แล้ว

    You haven’t mentioned how you’re passing the variables from terminal to docker

    • @veer1109
      @veer1109 2 ปีที่แล้ว +1

      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.

    • @NagarajCruze
      @NagarajCruze 2 ปีที่แล้ว

      @@veer1109 Yup, Thanks

  • @ammarayousaf893
    @ammarayousaf893 3 ปีที่แล้ว

    Can i get a code of this video or a pom file of ur code?

    • @veerkumarpatil
      @veerkumarpatil  3 ปีที่แล้ว +1

      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

    • @ammarayousaf893
      @ammarayousaf893 3 ปีที่แล้ว

      @@veerkumarpatil can you share your gmail as i am new and stuck in different issues can you please help?

    • @veerkumarpatil
      @veerkumarpatil  3 ปีที่แล้ว

      veer.1109@gmail.com

    • @ammarayousaf893
      @ammarayousaf893 3 ปีที่แล้ว

      @@veerkumarpatil many thanks