Giter Site home page Giter Site logo

docker-selenium's Introduction

Docker Selenium

A small prototype running a Selenium Grid inside docker container to parallelize tests.

Selenium Grid

Selenium Grid is a way to run tests scenarios against a cluster of browser instances. Its based on a master slave architecture. First the hub (master) needs to be started. Then you can register as many browser instances (nodes) as needed.

Selenium + Docker

The selenium community provides a set of standalone and grid Docker images. The idea behind this prototype is to use docker-compose to start a combination of a Selenium hub instance and multiple browser nodes.

Usage

Convenience scripts are available inside the bin folder.

  • ./bin/run <number_of_nodes> - Starts the hub and instances of Chrome and Firefox (default: 5)
  • ./bin/debug <number_of_nodes> - Starts the hub and instances of debug Chrome and Firefox (default: 5)
  • ./bin/stop - Stops the stack
  • ./bin/vnc <container_name> - Starts the VNC viewer

For anything more complex use docker-compose commands

VNC

It's possible to debug the browsers nodes using VNC.

First you need to determine the port use to connect to the VNC server by running: docker port dockerselenium_chrome_<instance_number> 5900

Then using a VNC viewer you can connect to the node by using the URL http://127.0.0.1:<port> and the password secret.

Client connection

Once everything is launched you can access an overview of the nodes cluster at: http://localhost:4444/grid/console. For more informations on how to run tests on the cluster please take a look at the Selenium Grid documentation.

docker-selenium's People

Contributors

talend-glorieux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.