Provides a selenium grid to run LedgerSMB tests against.
wget https://github.com/ledgersmb/docker-selenium-grid/docker-compose.yml
docker-compose up -d
This will run the grid as a daemon. Remove -d
to run it in a terminal.
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
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
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.