This is a simple test suite which runs some back black-box tests on a given website.

Further Reading:


It was designed with the following considerations in mind:

- It should be executed via Bamboo.
- It should be executed in a Unix environment, with Python 2.7, pip and virtualenv available.
- It should be configured by an environment variable, called `BAMBOO_DOMAIN`.
- The tests chould be throttled, so as to not overwhelm the web server.
- It should report the test results in XUnit format.


You'll need `phantomjs`. You can install this on your local machine (OSX), like so:

	$ brew install phantomjs

The code assumes that `phantomjs` is installed into `/opt/`, if you have installed to a different location, then you'll need to grep for the `phantomjs` locations in `` and amend as needed.
You'll need a `phantomjs` WebDriver installed, too. If you use Chrome, you can get the latest version of the Chrome WebDriver from here:

After you have unzipped the package, you need to move the binary to somewhere in your `PATH`:

	$ sudo mv ~/Downloads/chromedriver /usr/local/bin/


First, setup the environment:

	$ make setup

Then, if you want to run a quick test, point it at a domain:

	$ export BAMBOO_DOMAIN=""
	$ make


The code is designed to be run from a CI system. In our case, we use Atlassian Bamboo.

Todo: Add Bamboo documentation.

You can also run the code from your local machine, by first setting the `BAMBOO_DOMAIN` environment variable, then running `make`:

	$ export BAMBOO_DOMAIN=""
	$ make

The output will be dumped into `nosetests.xml`, which you can then analyse however you want - using a CI platform usually makes this pretty easy.


A lot of this was copied from and inspired by Leon Smith's code: