Skip to content
A flexible and scalable container based Selenium Grid with video recording, live preview, basic auth & dashboard.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Adding new issue templates (#841) Jan 19, 2019
charts/zalenium fix role.yaml (#875) Feb 20, 2019
dashboard Fixing paths to make remote dashboars work again (#873) Feb 19, 2019
docker Dashboard Reworked (#852) Jan 30, 2019
docs Improve remote debug documentation (#887) Mar 4, 2019
kubernetes replace persistence.enabled by persistence.data.enabled and persisten… Jan 16, 2019
scripts Dashboard Reworked (#852) Jan 30, 2019
src Use the same network for both hub and nodes. Mar 11, 2019
.gitattributes
.gitignore Issue:794 Get NoVNC web socket to work from LivePreview (/grid/admin/… Jan 9, 2019
.travis.yml
Analytics.md [BUA-1022] Renaming packages from tip to ep Apr 24, 2017
CODE_OF_CONDUCT.md Add markdown files (Security and Code of Conduct) (#161) Jun 19, 2017
CONTRIBUTING.md Final changes to new docs (#388) Jan 2, 2018
LICENSE.md
MAINTAINERS Dockerized (#16) Nov 7, 2016
README.md
SECURITY.md
codecov.yml
delivery.yaml
gen-scm-source.sh
logo.png [BUA-1022] Adding new Zalenium logos Apr 26, 2017
pom.xml
push_image.sh Copying scm-source to image to deploy in Zalando k8s Jul 31, 2017
release.sh Refined release.sh Nov 29, 2016
run_integration_tests.sh
scm-source.json

README.md

Build Status Codacy Badge codecov GitHub release Docker Pulls Slack

This is a Selenium Grid extension to scale your local grid dynamically with docker containers. It uses docker-selenium to run your tests in Firefox and Chrome locally, if you need a different browser, your tests can get redirected to a cloud testing provider (Sauce Labs, BrowserStack, TestingBot). Zalenium also works out of the box in Kubernetes.

Zalenium's maintainers add new features regularly. We invite you to test it, report bugs, suggest any ideas you may have, and contribute. See our contributing guidelines for more details.

Why?

Thanks for open sourcing this. Our test suite run time has dropped from more than an hour to six minutes. — @TKueck

We know how complicated it is to:

  • Have a stable grid to run UI tests with Selenium
  • Maintain it over time (keep up with new browser, Selenium and drivers versions)
  • Provide capabilities to cover all browsers and platforms

That is why we took this approach where docker-selenium nodes are created on demand. Your UI tests in Firefox and Chrome will run faster because they are running on a local grid, on a node created from scratch and disposed after the test completes.

If you need a capability that cannot be fulfilled by docker-selenium, the test gets redirected to a cloud testing provider (Sauce Labs, BrowserStack, TestingBot).

Zalenium's main goal is: to allow anyone to have a disposable and flexible Selenium Grid infrastructure.

Part of the idea comes from this Sauce Labs post.

What does Zalenium mean?

As you can imagine, it is the result of mixing Zalando and Selenium. As mentioned before, this project's aim is to provide a simple way to create a grid and contribute to the Selenium community. Nevertheless, this is not an official Selenium project. We kindly ask you to create issues in this repository. If you have questions about how to get started, please join the #zalenium channel on Slack.


Contents

Getting Started

Prerequisites

  • Docker engine running, version >= 1.11.1 (probably works with earlier versions, not tested yet).

  • Make sure your docker daemon is running (e.g. docker info works without errors).

  • Pull the docker-selenium image. docker pull elgalu/selenium

  • docker pull dosel/zalenium

Run it

  • Zalenium uses docker to scale on-demand, therefore we need to give it the docker.sock full access, this is known as "Docker alongside docker".

     # Pull docker-selenium
      docker pull elgalu/selenium
    
      # Pull Zalenium
      docker pull dosel/zalenium
            
      docker run --rm -ti --name zalenium -p 4444:4444 \
        -v /var/run/docker.sock:/var/run/docker.sock \
        -v /tmp/videos:/home/seluser/videos \
        --privileged dosel/zalenium start
    • Why --privileged? We suggest you run Zalenium as --privileged to speed up the node registration process by increasing the entropy level with Haveged. Using --privileged is optional since it is just meant to improve its performance. For more information, check this tutorial.
  • Try also our one line installer and starter for OSX/Linux (it will check for the latest images and ask for missing dependencies.)

      curl -sSL https://raw.githubusercontent.com/dosel/t/i/p | bash -s start
  • More usage examples, parameters, configurations, video usage and one line starters can be seen here

  • After the output, you can check the grid console

  • Now you can point your Selenium tests to http://localhost:4444/wd/hub

  • Stop it: docker stop zalenium

Additional features

  • Video recording, check them in the /tmp/videos folder (or the one you mapped when starting Zalenium)
  • Customise video file naming via capabilities, basic auth and more

Documentation

Check the complete documentation at https://zalando.github.io/zalenium/

License

See License

Security

See Security

You can’t perform that action at this time.