Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanhamlin/iag-redirect-tests
https://github.com/seanhamlin/iag-redirect-tests
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/seanhamlin/iag-redirect-tests
- Owner: seanhamlin
- Created: 2016-01-12T02:25:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T02:26:10.000Z (almost 9 years ago)
- Last Synced: 2024-11-07T22:06:29.198Z (2 months ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iag.com.au redirect tests
General redirection tests for the iag.com.au site. The idea is to reduce manual effort by automating these checks as much as we can.
## Installation
First you will need to install PhantomJS, the [2.0 release](http://phantomjs.org/download.html) is preferred. If you are running Mac OSX there is a critical bug that effects this, you will need this [fork](https://github.com/eugene1g/phantomjs/releases) in the mean time. Once you have downloaded the binary, symlink this to
/usr/local/bin/phantomjs
.Next is CasperJS, you can git clone this repo
```
git clone https://github.com/n1k0/casperjs.git
git checkout master
```Then symlink the bin/casperjs script to
/usr/local/bin/casperjs
.You can verify this works by running:
```
casperjs --version
phantomjs --version
```From anywhere (as these should now be on your path).
## Run the tests
This is simple.
```
./run.sh
```You can also test the TEST site instance with
```
./run.sh -e=TEST
```CasperJS will report success or failure at the end of the test run. Tests can take upwards of 1 minute to run (depending on site speed).
## Debug
You can run the script with an optional parameter to get CasperJS debug output.
```
./run.sh -v
```## Example output
![Example output from CasperJS](images/example-run.png)