Powered by Zalenium
Selenium is the industry standard language for driving web browsers using the WebDriver protocol. Every major browser vendor supports this, but, every browser requires separate executables to attach to browsers. Zalenium addresses this issue by providing an up-to-date Selenium Grid with a Firefox and Chrome browser. This abstracts the pain of maintenance for handling our own internal grids.
This provides scaffolding for new automation work using Ruby 2.3, Cucumber 3, and is complete with a Zalenium installation.
Ensure you have a recent version of Docker installed
- Clone this repo
- Navigate to this repo
bin/run_tests.sh
Some docker images were pulled (ruby:2.3, elgalu/selenium:3, and dosel/zalenium:3). Then, Zalenium was started up. Gemfile dependencies are installed in the Ruby container, and then Cucumber is then kicked off and runs each test defined in tests/features. The sample feature creates a new browser, navigates to a page, and then verifies the page title.
You can view videos of completed tests by navigating to the Dashboard.
docker-compose up -d zaleniumStarts the Zalenium instance.docker-compose logs -f zaleniumwill display logsdocker-compose run testerstarts the cucumber testsdocker-compose run tester prystarts a Pry REPL instance on the Ruby containerdocker-compose run tester bashstarts a bash instance on the Ruby container
Kick off tests like this:
cd testsLOCAL=1 cucumber
Contact Sonja Leaf