-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
298 additions
and
8 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
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
113 changes: 113 additions & 0 deletions
113
resources/postman-test/collection/apichallenges3.postman_collection.json
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,113 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "cd65f242-28bb-445d-8f99-bb8838873389", | ||
"name": "New Collection", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | ||
"_exporter_id": "12276119", | ||
"_collection_link": "https://techsdd.postman.co/workspace/ATA-ticket~bd7140bf-47c0-42b2-849f-8629af1a85b0/collection/12276119-cd65f242-28bb-445d-8f99-bb8838873389?action=share&source=collection_link&creator=12276119" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "get all", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"json_response = JSON.parse(responseBody);\r", | ||
"entities_id = json_response.entities[0]['id'];\r", | ||
"pm.globals.set(\"entities_id\", entities_id);\r", | ||
"console.log(\"texst\"+ entities_id)\r", | ||
"\r", | ||
"pm.test(\"Status code is 200\", function () {\r", | ||
" pm.response.to.have.status(200);})" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "https://apichallenges.eviltester.com/sim/entities", | ||
"protocol": "https", | ||
"host": [ | ||
"apichallenges", | ||
"eviltester", | ||
"com" | ||
], | ||
"path": [ | ||
"sim", | ||
"entities" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "get single", | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"exec": [ | ||
"console.log(entities_id)" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"json_response = JSON.parse(responseBody);\r", | ||
"pm.test(\"Status code is 200\", function () {\r", | ||
" pm.response.to.have.status(200);})\r", | ||
"\r", | ||
" \r", | ||
"pm.test(\"Body is correct\", function () {\r", | ||
" json_response['name'] === 'entity number 5';\r", | ||
"});" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://apichallenges.eviltester.com/sim/entities/{{entities_id}}", | ||
"protocol": "https", | ||
"host": [ | ||
"apichallenges", | ||
"eviltester", | ||
"com" | ||
], | ||
"path": [ | ||
"sim", | ||
"entities", | ||
"{{entities_id}}" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
152 changes: 152 additions & 0 deletions
152
resources/postman-test/collection/apichallenges4.postman_collection.json
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,152 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "c11b0163-1394-43de-8a02-02c1e1079871", | ||
"name": "New Collection", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | ||
"_exporter_id": "12276119", | ||
"_collection_link": "https://techsdd.postman.co/workspace/ATA-ticket~bd7140bf-47c0-42b2-849f-8629af1a85b0/collection/12276119-c11b0163-1394-43de-8a02-02c1e1079871?action=share&source=collection_link&creator=12276119" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "get all", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"\r", | ||
"\r", | ||
"pm.test(\"Status code is 200\", function () {\r", | ||
" pm.response.to.have.status(200);})" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{url-qa-test}}/sim/entities", | ||
"host": [ | ||
"{{url-qa-test}}" | ||
], | ||
"path": [ | ||
"sim", | ||
"entities" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "add entities", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"json_response = JSON.parse(responseBody);\r", | ||
"pm.test(\"Status code is 201\", function () {\r", | ||
" pm.response.to.have.status(201);})\r", | ||
"\r", | ||
" \r", | ||
"pm.test(\"Body is correct\", function () {\r", | ||
" json_response['name'] === 'bob'\r", | ||
"});\r", | ||
"entities_id = json_response['id']\r", | ||
"pm.globals.set(\"entities_id\", entities_id)" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\r\n \"name\": {{name}}\r\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{url-qa-test}}/sim/entities", | ||
"host": [ | ||
"{{url-qa-test}}" | ||
], | ||
"path": [ | ||
"sim", | ||
"entities" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "get single", | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"exec": [ | ||
"console.log(entities_id)" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"json_response = JSON.parse(responseBody);\r", | ||
"pm.test(\"Status code is 200\", function () {\r", | ||
" pm.response.to.have.status(200);})\r", | ||
"\r", | ||
" \r", | ||
"pm.test(\"Body is correct\", function () {\r", | ||
" json_response['name'] === 'bob';\r", | ||
"});" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "{{url-qa-test}}/sim/entities/{{entities_id}}", | ||
"host": [ | ||
"{{url-qa-test}}" | ||
], | ||
"path": [ | ||
"sim", | ||
"entities", | ||
"{{entities_id}}" | ||
] | ||
} | ||
}, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ { | ||
"url-qa-test": "https://apichallenges.eviltester.com", | ||
"name": "bob" | ||
|
||
} ] |