Skip to content

Latest commit

 

History

History

zalenium

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Prerequisites

The following prerequisites must be met prior to beginning to deploy Zalenium (A container based Selenium Grid)

Environment Setup

  1. Clone this repository: git clone https://github.com/redhat-cop/containers-quickstarts
  2. cd containers-quickstarts/zalenium
  3. Run ansible-galaxy install -r requirements.yml --roles-path=galaxy
  4. Login to OpenShift: oc login -u <username> https://master.example.com:8443

Deploy Zalenium

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

Next steps

Access your Zalenium:

Run simple test from your local machine (requires NodeJS installed):

  1. Setup Protractor: npm install -g protractor
  2. Get into test directory cd example-tests/protractor
  3. Edit the conf.js file to point to your own Zalenium instance
  4. Inspect the simple-test.js file. It will just quickly access AngularJS website and make a post to their TODO example.
  5. Run the tests with: protractor conf.js