Skip to content

Requests

psiinon edited this page Apr 4, 2013 · 4 revisions

Requests are instructions to interact with web applications.

Attributes

Name Format Description
url String The URL to access
data String Data to supply, eg in a POST request
method String The HTTP method
headers String Any non standard headers required
response String An optional example of the response expected
transformations Array The transformations to be applied to the request
assertions Array The assertions performed on the response
index Integer The index of the statement in the script
elementType String Always ZestRequest

JSON

An basic example:
{
  "url": "http://www.example.com/test?aaa=bbb&ccc=ddd",
  "data": "",
  "method": "GET",
  "headers": "",
  "response": {},
  "transformations": [],
  "assertions": [],
  "index": 1,
  "elementType": "ZestRequest"
}

See also

Clone this wiki locally