Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Postman tests example
tests["Status code is 200"] = responseCode.code === 200;
tests["Response time is acceptable"] = responseTime < 200; // milliseconds
tests["Content-Type header is set"] = postman.getResponseHeader("Content-Type");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment