-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
518 additions
and
98 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
{ | ||
"variables": [], | ||
"info": { | ||
"_postman_id": "e5f2e9cf-173b-c60a-7336-ac804a87d762", | ||
"description": "A simple V2 collection to test out multi level folder flows", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"id": "F1-id", | ||
"description": "", | ||
"item": [ | ||
{ | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"tests[\"Status code is 200\"] = responseCode.code === 200;", | ||
"tests[\"Request executed in correct order\"] = postman.getEnvironmentVariable(\"count\") === 0;" | ||
] | ||
} | ||
} | ||
], | ||
"request": { | ||
"url": "https://postman-echo.com/get", | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"description": "" | ||
}, | ||
"response": [], | ||
"id": "F1.R1-id" | ||
}, | ||
{ | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"tests[\"Status code is 200\"] = responseCode.code === 200;", | ||
"tests[\"Request executed in correct order\"] = postman.getEnvironmentVariable(\"count\") === \"1\";" | ||
] | ||
} | ||
} | ||
], | ||
"request": { | ||
"url": "https://postman-echo.com/get", | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"description": "" | ||
}, | ||
"response": [], | ||
"id": "F1.R2-id" | ||
}, | ||
{ | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"tests[\"Status code is 200\"] = responseCode.code === 200;", | ||
"tests[\"Request executed in correct order\"] = postman.getEnvironmentVariable(\"count\") === \"2\";" | ||
] | ||
} | ||
} | ||
], | ||
"request": { | ||
"url": "https://postman-echo.com/get", | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"description": "" | ||
}, | ||
"response": [], | ||
"id": "F1.R3-id" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "F2-id", | ||
"description": "", | ||
"item": [ | ||
{ | ||
"id": "F2.F3-id", | ||
"description": "", | ||
"item": [ | ||
{ | ||
"id": "F2.F3.R1-id", | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"var count = parseInt(postman.getEnvironmentVariable(\"count\"));", | ||
"postman.setEnvironmentVariable(\"count\", isNaN(count) ? 0 : count + 1);" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"tests[\"Status code is 200\"] = responseCode.code === 200;", | ||
"tests[\"Request executed in correct order\"] = postman.getEnvironmentVariable(\"count\") === \"3\";" | ||
] | ||
} | ||
} | ||
], | ||
"request": { | ||
"url": "https://postman-echo.com/get", | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"description": "" | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "", | ||
"item": [] | ||
}, | ||
{ | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"tests[\"Status code is 200\"] = responseCode.code === 200;", | ||
"tests[\"Request executed in correct order\"] = postman.getEnvironmentVariable(\"count\") === \"4\";" | ||
] | ||
} | ||
} | ||
], | ||
"request": { | ||
"url": "https://postman-echo.com/get", | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"description": "" | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"var count = parseInt(postman.getEnvironmentVariable(\"count\"));", | ||
"postman.setEnvironmentVariable(\"count\", isNaN(count) ? 0 : count + 1);" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"tests[\"Status code is 200\"] = responseCode.code === 200;", | ||
"tests[\"Request executed in correct order\"] = postman.getEnvironmentVariable(\"count\") === \"5\";" | ||
] | ||
} | ||
} | ||
], | ||
"request": { | ||
"url": "https://postman-echo.com/get", | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"description": "" | ||
}, | ||
"response": [], | ||
"id": "R1-id" | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.