Created
July 1, 2020 11:33
-
-
Save velotiotech/0764ed93f84ae972f337f88f50740eaf to your computer and use it in GitHub Desktop.
This file contains 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 less than 200ms"] = responseTime < 200; | |
tests["Response time is acceptable"] = _.inRange(responseTime, 0, 500); | |
tests["Body is not empty"] = (responseBody!==null || responseBody.length!==0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment