-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(item): add support to get path of item
- Loading branch information
Showing
5 changed files
with
235 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
unreleased: | ||
new features: | ||
- GH-1339 Added getPath method to Item class | ||
|
||
4.2.1: | ||
date: 2023-09-11 | ||
fixed bugs: | ||
|
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,182 @@ | ||
{ | ||
"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": [ | ||
{ | ||
"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": [] | ||
}, | ||
{ | ||
"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": [] | ||
}, | ||
{ | ||
"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": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "", | ||
"item": [ | ||
{ | ||
"description": "", | ||
"item": [ | ||
{ | ||
"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": [] | ||
} | ||
] | ||
} |
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
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