Advertisement

selenium部署分布式 UI 自动化测试环境-Docker

阅读量:

一、根据selenium/hub官网的 配置 信息,进行配置。

复制代码
    How to run this image
    The Hub and Nodes will be created in the same network and they will recognize each other by their container name. A Docker network⁠ needs to be created as a first step.
    
    Create a Docker Network
    docker network create grid
    Start the Hub using the created network
    docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:latest
    Start the Node using the created network
    docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
    --shm-size="2g" \
    -e SE_EVENT_BUS_PUBLIS

全部评论 (0)

还没有任何评论哟~