blippar / aragorn

Regression tests made easy
Apache License 2.0
7 stars 1 forks source link

Add URL templating / stateful tests #22

Closed post-l closed 6 years ago

post-l commented 6 years ago

The URL path and query can be constructed from previous tests through templating.

{
  "tests": [
    {
      "id": "add_todo",
      "name": "Add Todo",
      "request": {
        "method": "POST",
        "path": "/todo"
      },
      "saveDocument": true
    },
    {
      "name": "Get Todo",
      "request": {
        "method": "GET",
        "path": "/todo/{{add_todo.id}}"
      }
    }
  ]
}