1
+ {
2
+ "info" : {
3
+ "_postman_id" : " 5fa5f130-1f3d-4c6c-be69-c7e27f40191c" ,
4
+ "name" : " Script Order" ,
5
+ "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6
+ },
7
+ "item" : [
8
+ {
9
+ "name" : " SubRequests" ,
10
+ "item" : [
11
+ {
12
+ "name" : " SubRequest 1" ,
13
+ "event" : [
14
+ {
15
+ "listen" : " prerequest" ,
16
+ "script" : {
17
+ "id" : " a27a671c-629b-4314-b1ff-16ebc71a21a0" ,
18
+ "exec" : [
19
+ " console.log(\" SubRequest Pre-Request 1\" );"
20
+ ],
21
+ "type" : " text/javascript"
22
+ }
23
+ },
24
+ {
25
+ "listen" : " test" ,
26
+ "script" : {
27
+ "id" : " 4db28ac6-6ca0-48bf-9017-61455644c33e" ,
28
+ "exec" : [
29
+ " console.log(\" SubRequest Tests 1\" );"
30
+ ],
31
+ "type" : " text/javascript"
32
+ }
33
+ }
34
+ ],
35
+ "request" : {
36
+ "method" : " GET" ,
37
+ "header" : [],
38
+ "url" : {
39
+ "raw" : " https://localhost:5001/api/Values?order=1" ,
40
+ "protocol" : " https" ,
41
+ "host" : [
42
+ " localhost"
43
+ ],
44
+ "port" : " 5001" ,
45
+ "path" : [
46
+ " api" ,
47
+ " Values"
48
+ ],
49
+ "query" : [
50
+ {
51
+ "key" : " order" ,
52
+ "value" : " 1"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ "response" : []
58
+ },
59
+ {
60
+ "name" : " SubRequest 2" ,
61
+ "event" : [
62
+ {
63
+ "listen" : " prerequest" ,
64
+ "script" : {
65
+ "id" : " a27a671c-629b-4314-b1ff-16ebc71a21a0" ,
66
+ "exec" : [
67
+ " console.log(\" SubRequest Pre-Request 2\" );"
68
+ ],
69
+ "type" : " text/javascript"
70
+ }
71
+ },
72
+ {
73
+ "listen" : " test" ,
74
+ "script" : {
75
+ "id" : " 4db28ac6-6ca0-48bf-9017-61455644c33e" ,
76
+ "exec" : [
77
+ " console.log(\" SubRequest Tests 2\" );"
78
+ ],
79
+ "type" : " text/javascript"
80
+ }
81
+ }
82
+ ],
83
+ "request" : {
84
+ "method" : " GET" ,
85
+ "header" : [],
86
+ "url" : {
87
+ "raw" : " https://localhost:5001/api/Values?order=2" ,
88
+ "protocol" : " https" ,
89
+ "host" : [
90
+ " localhost"
91
+ ],
92
+ "port" : " 5001" ,
93
+ "path" : [
94
+ " api" ,
95
+ " Values"
96
+ ],
97
+ "query" : [
98
+ {
99
+ "key" : " order" ,
100
+ "value" : " 2"
101
+ }
102
+ ]
103
+ }
104
+ },
105
+ "response" : []
106
+ }
107
+ ],
108
+ "event" : [
109
+ {
110
+ "listen" : " prerequest" ,
111
+ "script" : {
112
+ "id" : " 97829ed1-9971-4ba1-9bc8-eb53c7da083e" ,
113
+ "type" : " text/javascript" ,
114
+ "exec" : [
115
+ " console.log(\" SubRequests Folder Pre-Request\" );"
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "listen" : " test" ,
121
+ "script" : {
122
+ "id" : " 46bbb8f9-092e-4102-a3b8-5aba1a2ef003" ,
123
+ "type" : " text/javascript" ,
124
+ "exec" : [
125
+ " console.log(\" SubRequests Folder Tests\" );"
126
+ ]
127
+ }
128
+ }
129
+ ],
130
+ "protocolProfileBehavior" : {}
131
+ },
132
+ {
133
+ "name" : " Request 1" ,
134
+ "event" : [
135
+ {
136
+ "listen" : " prerequest" ,
137
+ "script" : {
138
+ "id" : " e0c11c6d-9125-4114-920a-3baf95b48929" ,
139
+ "exec" : [
140
+ " console.log(\" Request 1 Pre-Request\" );"
141
+ ],
142
+ "type" : " text/javascript"
143
+ }
144
+ },
145
+ {
146
+ "listen" : " test" ,
147
+ "script" : {
148
+ "id" : " 1d86db65-9ed1-4c61-881e-b18129d78d0f" ,
149
+ "exec" : [
150
+ " console.log(\" Request 1 Test\" );"
151
+ ],
152
+ "type" : " text/javascript"
153
+ }
154
+ }
155
+ ],
156
+ "request" : {
157
+ "method" : " GET" ,
158
+ "header" : [],
159
+ "url" : {
160
+ "raw" : " https://localhost:5001/api/Values?order=2" ,
161
+ "protocol" : " https" ,
162
+ "host" : [
163
+ " localhost"
164
+ ],
165
+ "port" : " 5001" ,
166
+ "path" : [
167
+ " api" ,
168
+ " Values"
169
+ ],
170
+ "query" : [
171
+ {
172
+ "key" : " order" ,
173
+ "value" : " 2"
174
+ }
175
+ ]
176
+ }
177
+ },
178
+ "response" : []
179
+ },
180
+ {
181
+ "name" : " Request 2" ,
182
+ "event" : [
183
+ {
184
+ "listen" : " prerequest" ,
185
+ "script" : {
186
+ "id" : " e0c11c6d-9125-4114-920a-3baf95b48929" ,
187
+ "exec" : [
188
+ " console.log(\" Request 2 Pre-Request\" );"
189
+ ],
190
+ "type" : " text/javascript"
191
+ }
192
+ },
193
+ {
194
+ "listen" : " test" ,
195
+ "script" : {
196
+ "id" : " 1d86db65-9ed1-4c61-881e-b18129d78d0f" ,
197
+ "exec" : [
198
+ " console.log(\" Request 2 Test\" );"
199
+ ],
200
+ "type" : " text/javascript"
201
+ }
202
+ }
203
+ ],
204
+ "request" : {
205
+ "method" : " GET" ,
206
+ "header" : [],
207
+ "url" : {
208
+ "raw" : " https://localhost:5001/api/Values?order=3" ,
209
+ "protocol" : " https" ,
210
+ "host" : [
211
+ " localhost"
212
+ ],
213
+ "port" : " 5001" ,
214
+ "path" : [
215
+ " api" ,
216
+ " Values"
217
+ ],
218
+ "query" : [
219
+ {
220
+ "key" : " order" ,
221
+ "value" : " 3"
222
+ }
223
+ ]
224
+ }
225
+ },
226
+ "response" : []
227
+ }
228
+ ],
229
+ "event" : [
230
+ {
231
+ "listen" : " prerequest" ,
232
+ "script" : {
233
+ "id" : " a195a875-25e2-45b4-898b-0fcf01f1204a" ,
234
+ "type" : " text/javascript" ,
235
+ "exec" : [
236
+ " console.log(\" Collection Pre-Request\" );"
237
+ ]
238
+ }
239
+ },
240
+ {
241
+ "listen" : " test" ,
242
+ "script" : {
243
+ "id" : " d4bae30c-8510-4668-ac87-eb5735f906ad" ,
244
+ "type" : " text/javascript" ,
245
+ "exec" : [
246
+ " console.log(\" Collection Tests\" );"
247
+ ]
248
+ }
249
+ }
250
+ ],
251
+ "protocolProfileBehavior" : {}
252
+ }
0 commit comments