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 = value | a value for later requests in this session |
save name = value | like set, and written to environment.local.stamp |
let name = value | a value for the rest of this script |
print value | console 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.
