How to Setup Selenium Grid in Docker for Parallel Testcase Execution | Parallel Execution in docker

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

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

  • @prashinkasahu
    @prashinkasahu Месяц назад +1

    For me the node containers are getting exited just after creating it or restarting it.please suggest

    • @AJAUTOMATION
      @AJAUTOMATION  Месяц назад

      It can happen due to various issues, could be due to insufficient memory or hub and node versions are not correct, check configuration again if nodes are registered with the hub or not. Try to use docker compose with correct configuration to setup grid with latest hub and node images

  • @AdamantMindset
    @AdamantMindset 3 года назад +1

    since selenium 4 is now officially the new version docker, uses grid 4. so registering the node with the line from the video doesn't seem to connect. it keeps on loading and then gives error. can you look into it?

    • @AJAUTOMATION
      @AJAUTOMATION  3 года назад +2

      Hi @Karan , for selenium grid 4, configuring hub and node is somewhat different than what we did in the video of Selenium grid 3.
      Here we need to setup environment by setting up bus events, subscribe port and publish event port i.e. tcp port 4442 and port 4443.
      If u r using selenium/hub image 4th version then u will required to use 4th versions of the node images as well. Set==> SE_EVENT_BUS_PUBLISH_PORT , SE_EVENT_BUS_SUBSCRIBE_PORT , SE_EVENT_BUS_HOST while creating and registering the Node containers to the Hub Container. If you miss any one of the above environment setting then you won't be able to link nodes with Hub
      I am going to add a separate video in the same series soon...

  • @ujjwalshrivastava-s6z
    @ujjwalshrivastava-s6z 4 месяца назад +1

    please add videos in selenium 4 how to register the grid and the video it?

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

    What if I'll be using same machine for hub and node? Thanks

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

      There won't be any issues as long as you are using docker or VM on same machine...

  • @JenniferAniston-t4b
    @JenniferAniston-t4b 6 месяцев назад +1

    Hello I found the "selenium/node-opera-debug" and "selenium/node-firefox-debug" and "selenium/node-chrome-debug" the Greated column in Docker shows "3 years ago". Is that ok?

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

      Images might not be updated but that won't be issue u can still run the automation it will work fine.
      You can use selenium/node-chrome instead as both images are merged now

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

    for me the chromenode is not able to connect the network ,I had done the same process as you shown it starting container of chrome but not connecting to the grid network

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

      Try to remove network and create a new one.. Both hub node should use same network...

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

    Hi, is there any way we can create a replica set so that the containers could scale as per the requirement? Example: My test cases are more and I want to launch more containers, can I do that?

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

      Auto scaling of the containers not possible with docker compose... For now u can create multiple containers at the beginning only with docker compose scale cmd. Idle containers don't take memory or cpu utilisation will be normal.

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

    any idea on how to use the selenium grid extension for docker?

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

      need to check , not sure about extension for docker

  • @GaneshThakur-m1g
    @GaneshThakur-m1g Год назад

    U shown only for the linux node. What if we meet to add windows node. Can it be added in same network gridnetwork

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

      The node machine is linux. Selenium will run on it

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

    Currently i am running trying to setup as shown in video but when running this command docker run -d -p 4446:5900 -net gridnetwork -e HUB_HOST=seleniumHub -name chromNode selenium/node-chrome-debug error is coming -> " Couldn't register this node: Error sending the registration request: The hub responded with 404 "
    using (Docker version 23.0.5, build bc4487a) in MacBook Air (M1, 2020)