This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
/
HTTPBinNewmanTest.json.postman_collection
105 lines (105 loc) · 2.99 KB
/
HTTPBinNewmanTest.json.postman_collection
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"id": "99315123-992f-c284-d6dc-b00be1d6be62",
"name": "newmanTest",
"description": "Makes four requests to HTTPBin (httpbin.org) and tests Newman",
"order": [
"9f169dc0-7444-b89e-a7e0-950af47bd7da",
"d83dcc96-27f1-47d7-b35f-2095ef5fddc8",
"0f22ce8f-df9b-af6d-6c5a-5aef8a81e272",
"3dca05d0-7060-8ad9-1e28-0b63fed60715"
],
"folders": [],
"timestamp": 1438249510749,
"owner": "1260",
"remoteLink": "",
"public": false,
"requests": [
{
"id": "0f22ce8f-df9b-af6d-6c5a-5aef8a81e272",
"headers": "",
"url": "http://{{serverloc}}/delete",
"pathVariables": {},
"preRequestScript": "",
"method": "DELETE",
"collectionId": "99315123-992f-c284-d6dc-b00be1d6be62",
"data": [],
"dataMode": "params",
"name": "DELETE request",
"description": "",
"descriptionFormat": "html",
"time": 1438250164765,
"version": 2,
"responses": [],
"tests": "tests[\"Status code is 200\"] = responseCode.code === 200;",
"currentHelper": "normal",
"helperAttributes": {}
},
{
"id": "3dca05d0-7060-8ad9-1e28-0b63fed60715",
"headers": "",
"url": "http://{{serverloc}}/put",
"pathVariables": {},
"preRequestScript": "",
"method": "PUT",
"collectionId": "99315123-992f-c284-d6dc-b00be1d6be62",
"data": [
{
"key": "quotient",
"value": "223",
"type": "text",
"enabled": true
}
],
"dataMode": "urlencoded",
"name": "PUT with form data",
"description": "",
"descriptionFormat": "html",
"time": 1438250517000,
"version": 2,
"responses": [],
"tests": "var data = JSON.parse(responseBody);\ntests[\"Test form data\"] = data.form.quotient === \"223\";",
"currentHelper": "normal",
"helperAttributes": {}
},
{
"id": "9f169dc0-7444-b89e-a7e0-950af47bd7da",
"headers": "",
"url": "http://{{serverloc}}/get?lol=true",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"version": 2,
"tests": "var data = JSON.parse(responseBody);\ntests[\"Response contains params\"] = data.args.lol === \"true\";",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1438250908857,
"name": "GET with URL Params",
"description": "Simple GET request with URL Parameters",
"collectionId": "99315123-992f-c284-d6dc-b00be1d6be62",
"responses": []
},
{
"id": "d83dcc96-27f1-47d7-b35f-2095ef5fddc8",
"headers": "Content-Type: application/json\n",
"url": "http://{{serverloc}}/post",
"pathVariables": {},
"preRequestScript": "",
"method": "POST",
"collectionId": "99315123-992f-c284-d6dc-b00be1d6be62",
"data": [],
"dataMode": "raw",
"name": "POST with JSON body",
"description": "",
"descriptionFormat": "html",
"time": 1438250049106,
"version": 2,
"responses": [],
"tests": "var data = JSON.parse(responseBody);\ntests[\"Check POST param in response\"] = data.json.something === \"cool\";",
"currentHelper": "normal",
"helperAttributes": {},
"rawModeData": "{\n \"something\": \"cool\"\n}"
}
]
}