Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Django Dash 2012 entry for team e-Legion

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 core
Octocat-spinner-32 fixtures
Octocat-spinner-32 fortuitus
Octocat-spinner-32 my_static
Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE-MIT
Octocat-spinner-32 README.md
Octocat-spinner-32 gondor.yml
Octocat-spinner-32 manage.py
Octocat-spinner-32 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.