-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsonplaceholder.com.postman_collection.json
executable file
·69 lines (69 loc) · 1.71 KB
/
jsonplaceholder.com.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"info": {
"_postman_id": "666966a8-02e0-4476-a577-71d6ad5ccdec",
"name": "jsonplaceholder.com",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"_postman_id": "9734604d-e3af-43e4-ae9f-a2f09b3b2f1a",
"name": "https://jsonplaceholder.typicode.com/posts",
"event": [
{
"listen": "test",
"script": {
"id": "db59d7ba-bed1-4036-8224-4807b6a70bc1",
"type": "text/javascript",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"",
"pm.test(\"Body matches string\", function () {",
" pm.expect(pm.response.text()).to.include(\"quia et suscipit\");",
"});"
]
}
}
],
"request": {
"method": "GET",
"header": [],
"body": {},
"url": "https://jsonplaceholder.typicode.com/posts",
"description": "POST"
},
"response": []
},
{
"_postman_id": "69b89812-5eb0-4609-8012-82794cf3ea52",
"name": "https://jsonplaceholder.typicode.com/posts/1",
"event": [
{
"listen": "test",
"script": {
"id": "d1b8685f-5692-4eed-9107-2b3346bbbc77",
"type": "text/javascript",
"exec": [
"pm.test(\"Response time is less than 1200ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(1200);",
"});",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
]
}
}
],
"request": {
"method": "DELETE",
"header": [],
"body": {},
"url": "https://jsonplaceholder.typicode.com/posts/1",
"description": "DELETE"
},
"response": []
}
]
}