Skip to content

Instantly share code, notes, and snippets.

@JamesMessinger
Created July 27, 2017 19:25
  • Star 2 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JamesMessinger/84963608c522637bc46309e1c24d82f8 to your computer and use it in GitHub Desktop.
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