/selenium-grid-docker-swarm-test

Distribute automated tests with Selenium Grid and Docker Swarm

Primary LanguagePythonMIT LicenseMIT

Distributed Testing with Selenium Grid and Docker

Distribute automated tests with Selenium Grid and Docker Swarm

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment

  3. Install the requirements

  4. Sign up for Digital Ocean and generate an access token

  5. Add the token to your environment:

    $ export DIGITAL_OCEAN_ACCESS_TOKEN=[your_token]
  6. Spin up five droplets and deploy Docker Swarm:

    $ sh project/create.sh
  7. Set the environment variable:

    $ eval $(docker-machine env node-1)
    $ NODE=$(docker service ps --format "{{.Node}}" selenium_hub)
    $ export NODE_HUB_ADDRESS=$(docker-machine ip $NODE)
  8. Run the tests:

    $ python project/parallel_test_run.py
  9. Bring down the resources:

    $ sh project/destroy.sh