- Source code - Github
- Author - Gavin Noronha - gavinln@hotmail.com
This project provides a Ubuntu (12.0) Vagrant Virtual Machine (VM) with Selenium and the Robot Framework for web browser based tests. The project contains Puppet scripts that automatically install the software when the VM is started. It also has scripts that start the Selenium hub and nodes
-
To start the virtual machine(VM) type
vagrant up
-
In the root directory connect to the VM
vagrant ssh
-
Start the Selenium hub
/vagrant/vm/start_hub.sh
-
Verfiy the grid is started by opening the browser. Go to http://localhost:4444/
-
From outside the VM start the Selenium node ("INFO - Done: /status" is displayed)
REM on windows vm\start_node.bat
# on Linux vm/start_node.sh
-
Within the VM run the Selenium tests in the /vagrant/vm directory
cd /vagrant/vm pybot cnn_home.txt
-
The Firefox browser outside the VM will start and run the tests
-
The
/vagrant/vm/report.html
file has the test results -
To exit type "exit" or Ctrl+C
The following software needs to be installed to get the software from github and run Vagrant. The Git environment also provides an SSH client for Windows.