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!

Комментарии • 24

  • @vishwanathjadhav-dt7bo
    @vishwanathjadhav-dt7bo 5 месяцев назад

    great 👍

  • @sunrisesoft7952
    @sunrisesoft7952 2 года назад

    Really nice bro!
    Keep great sharing, thank you a lot! (bow)

  • @kumarankit2497
    @kumarankit2497 6 месяцев назад

    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

  • @ahmettemel8245
    @ahmettemel8245 2 года назад

    thank you

  • @mgk4143
    @mgk4143 Год назад

    Hello..where to check that what version of hub/node/chrome is installed on our machine like- selenium/hub:4.7.1-20221208

    • @qavbox
      @qavbox  Год назад +1

      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.

  • @pandudamera7211
    @pandudamera7211 2 года назад

    Could you please make one video how do read data from JSON sir ?

    • @qavbox
      @qavbox  2 года назад +1

      Sure, stay tuned!

    • @pandudamera7211
      @pandudamera7211 2 года назад

      Please take from 3 to 5 test cases how do read data in framework sir ?

  • @angelolawrence9989
    @angelolawrence9989 Год назад

    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.

    • @qavbox
      @qavbox  Год назад +1

      You can use this plugin from marketplace to open the terminal from eclipse - marketplace.eclipse.org/content/tm-terminal

    • @angelolawrence9989
      @angelolawrence9989 Год назад

      @@qavbox Thank you very much

  • @user-un3uc4jh8q
    @user-un3uc4jh8q Год назад

    Can I ask you to review my dockerfile and docker compose? I am getting error everytime and nothing is helping

    • @qavbox
      @qavbox  Год назад

      Yes sure, please share

    • @user-un3uc4jh8q
      @user-un3uc4jh8q Год назад

      @@qavbox thank you for answering, shared

    • @user-un3uc4jh8q
      @user-un3uc4jh8q Год назад

      I put here files content but it was deleted, can you please share telegram or smth else to send?

    • @qavbox
      @qavbox  Год назад

      @@user-un3uc4jh8q you can share the git repo link here or share using Google docs link with your docker compose content

    • @user-un3uc4jh8q
      @user-un3uc4jh8q Год назад

      @@qavbox I shared google docs, it also was deleted

  • @user-un3uc4jh8q
    @user-un3uc4jh8q Год назад

    I would like tests to be run on 2 containers: one for chrome, one for selenium tests

    • @qavbox
      @qavbox  Год назад

      One for selenium test means?, all our tests we run with selenium

    • @user-un3uc4jh8q
      @user-un3uc4jh8q Год назад

      @@qavbox one which contains chrome driver image, and the other for executing selenium tests

    • @qavbox
      @qavbox  Год назад

      @@user-un3uc4jh8q you need to have the chrome driver on the same container running the selenium tests.

  • @user-un3uc4jh8q
    @user-un3uc4jh8q Год назад

    Hi what password you are writing in noVNC localhost:7900

    • @qavbox
      @qavbox  Год назад +1

      Password is "secret" by default