The following prerequisites must be met prior to beginning to deploy Zalenium (A container based Selenium Grid)
- 1 Persistent Volumes or a cluster that supports dynamic provisioning with a default StorageClass
- OpenShift Command Line Tool
- Openshift Applier to deploy Zalenium. As a result you'll need to have ansible installed
- Clone this repository:
git clone https://github.com/redhat-cop/containers-quickstarts
cd containers-quickstarts/zalenium
- Run
ansible-galaxy install -r requirements.yml --roles-path=galaxy
- Login to OpenShift:
oc login -u <username> https://master.example.com:8443
Run the openshift-applier to create the zalenium
project and deploy required objects
ansible-playbook -i .applier galaxy/openshift-applier/playbooks/openshift-cluster-seed.yml
Access your Zalenium:
- Live Dashboard of ongoing tests: http://zalenium-zalenium.apps.example.com/grid/admin/live?refresh=20
- Recordings of previous tests: http://zalenium-zalenium.apps.example.com/dashboard/#
Run simple test from your local machine (requires NodeJS installed):
- Setup Protractor:
npm install -g protractor
- Get into test directory
cd example-tests/protractor
- Edit the
conf.js
file to point to your own Zalenium instance - Inspect the
simple-test.js
file. It will just quickly access AngularJS website and make a post to their TODO example. - Run the tests with:
protractor conf.js