This repository contains directory selenium-grid which hosts scripts to launch the selenium grid.
By default, the script installs the selenium grid helm chart in 'selenium-grid' namespace, which will then contain 5 pods - 1x hub and 4x chrome node. This can be customised, for more info on how to, please run the script with the -h or --help flag launch-selenium-grid.sh --help
NOTE in order for things to work as intended, please run the script from within the selenium-grid directory.
The selenium grid is then used to run:
as jobs in the AKS (dev | test) cluster
The AC tests are not enabled to run locally by default. If you wish to run the AC tests against your local dev cluster, you'll need to launch the selenium grid and enable the tests
from the root of this repository:
cd selenium-grid && ./launch-selenium-grid.sh | ps1
NOTE this only needs to be done once.
If you wish to stop the selenium grid, run kubectl delete ns selenium-grid
in local-overrides.yaml, set the *-ac-tests.enabled to true
:
enabling the public browse ac tests
pb-ac-tests:
enabled: true
Due to the fact that our dynamically created environments are not added to any domain registrar, we have to manually maintain the grid's DNS records by using Kubernetes hostAliases. Every time we create a new environment agaisnt which we intend to run the tests, we need to add a new entry to the /etc/hosts file in our chrome nodes, in order to reach them. This is done using the -a | --add option on the launch script. As that will append the given hostname to the list of hostAliases for all the nodes.
NOTE This part of the script can be scrapped once the DNS issues are resolved.