Created
July 27, 2017 19:25
-
-
Save JamesMessinger/84963608c522637bc46309e1c24d82f8 to your computer and use it in GitHub Desktop.
Postman tests example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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