Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.08 KB

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 virtualenv

  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