Guide

Scripts and assertions

After a response arrives, > lines run with status, headers, body, text, time and size.

assert condition, "message"a check; failures decide the exit code
set name = valuea value for later requests in this session
save name = valuelike set, and written to environment.local.stamp
let name = valuea value for the rest of this script
print valueconsole output

@needs logIn runs another request first unless it already ran, and a response is available to later requests by name: {{logIn.body.token}}.

stamp run . --no-save   # do not let save write to the local file

In the app: the Tests tab holds the script, and the response area has Tests and Console tabs for what passed and what was printed.

The Tests tab holding assert, set and save lines that run when the response arrives
The Tests tab holding assert, set and save lines that run when the response arrives

Back: Authentication Next: Reading the response