Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Django Dash 2012 entry for team e-Legion
Python JavaScript
Branch: master
Failed to load latest commit information.
core Fix assertion resolvers
fixtures Added note about demo fixtures to readme
fortuitus
my_static Fix <title> updating after test is run
templates Fixed link in testrun template
.gitignore [+] basic project page and testcase page
.travis.yml Add feditor tests to travis
LICENSE-MIT Add license
README.md Added note about demo fixtures to readme
gondor.yml Updated deploy settings to work with compressor
manage.py
requirements.txt

README.md

djangodash2012

Build Status

Django Dash 2012 entry for team e-Legion

License

MIT/X11. See LICENSE-MIT file.

What

Online tool to create automatic acceptance tests for REST/JSON APIs.

Testing

If you accidentally deleted demo testcases, you always can use demo fixtures:

python manage.py loaddata fixtures/demo/editor.json fixtures/demo/auth.json

Tips and tricks

Query parameters

Query parameters support special mini-language. Currently it is possible to provide either plain value by simply typing it in the field, or a random value, typing {random} special form:

{random:7:d}
{random:8:7}
{random:140}

The special form syntax is: {random:length:symbols}, where length is an integer and symbols is one of:

  • d for digits
  • l for lowercase letters
  • L for uppercase letters
  • symbols might be ommited to use digits and letters

Assertions

Assertion expressions have a syntax to do response fields querying. Let's shoot examples along with explanation.

Status code of last query:

.status_code

Take first query, its parsed json body, second array index, text property:

0.json.1.text
Something went wrong with that request. Please try again.