We know how complicated it is to have a stable grid, and how hard it is to maintain over time with enough capabilities to cover most browsers and platforms. Internally, we found that ~75% of our tests were executed in Firefox/Chrome, and the remaining were executed in Safari/IE. We decided to develop a tool where docker-selenium nodes are created, used and disposed on demand. For Safari/IE, we just forward the tests to Sauce Labs/BrowserStack.
Zalenium is an OSS extension to scale up and down your local grid dynamically with Docker containers. It uses Docker-Selenium to run tests in Firefox/Chrome, and when a different browser is needed, tests get redirected to a cloud testing service. Result: our tests suites run faster since most of the tests run on local Firefox/Chrome nodes, and we use in a smarter way the cloud testing service we pay for.
Diego Molina – Software Engineer in Test, Zalando SE
Leo Gallucci – Software Engineer, Tools and Infrastructure, Zalando SE
6. HAVE YOU USED SELENIUM GRID?HAVE YOU TRIED TO BUILD YOUR OWN SELENIUM GRID?
7. 7
WHAT IS ZALENIUM?
● Dynamic, on-demand Selenium Grid
● Expands and contracts during run time
● Based on docker-selenium
● Simple to setup and run
● and many more features...
Visit https://github.com/zalando/zalenium
8. 8
● Hard to maintain a stable Selenium Grid
● Difficult to cover all needed capabilities
● Allow anyone to have a disposable and
flexible Selenium Grid infrastructure
● Using the appropriate tool for your
environment
WHY ZALENIUM?
Visit https://github.com/zalando/zalenium
14. 14
• While developing tests locally
• Run your UI tests in your CI environment for a PR
• You have a big server and want a local grid
• When releasing:
• If Chrome and Firefox are enough, use only Zalenium
• Or combine it with a cloud testing provider for better coverage
WHEN TO USE ZALENIUM - SCENARIOS
Visit https://github.com/zalando/zalenium