ledgersmb / docker-selenium-grid

LedgerSMB's Docker image for Selenium grid slaves

Repository from Github https://github.comledgersmb/docker-selenium-gridRepository from Github https://github.comledgersmb/docker-selenium-grid

docker-selenium-grid

Provides a selenium grid to run LedgerSMB tests against.

Installation

wget https://github.com/ledgersmb/docker-selenium-grid/docker-compose.yml

Usage

docker-compose up -d

This will run the grid as a daemon. Remove -d to run it in a terminal.

Scaling

By default, the grid will run one copy of each browser but you can scale it easily after it is started. For example:

docker-compose scale firefox=5 chrome=3 phantomjs=2

Stopping the grid

Stoping the entire selenium grid is just as easy as starting them. Since it only takes seconds to start, you can have a clean slate for all the Selenium tests.

docker-compose -f docker-compose.yml stop && docker-compose -f docker-compose.yml rm -f

Testing

A small ruby script is provided to test the grid. Simply replace grid-server to point to your grid location and ledgersmb-vm to point to your LedgerSMB location and start the script will ```sh ruby grid.rb


## Notes

This grid is targetted and adapted for ledgerSMB, although it can be generalized easily. The prefered usage is to run it outside of the development machine.
The usage of google dns is intended as a place holder. Replace by yours so it can find your machines.

About

LedgerSMB's Docker image for Selenium grid slaves


Languages

Language:Ruby 100.0%