runner-runtime 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tmp/request.js CHANGED
@@ -1,9 +1,8 @@
1
1
  module.exports = {
2
2
  "option": {
3
- "scene": "auto_test",
3
+ "scene": "http_request",
4
4
  "globals": {
5
- "key": "value",
6
- "key11111111": "value"
5
+ "token": ""
7
6
  },
8
7
  "project": {
9
8
  "request": {
@@ -56,50 +55,274 @@ module.exports = {
56
55
  }
57
56
  },
58
57
  "env": {
59
- "env_id": "1",
58
+ "env_id": "25abf413b901a",
60
59
  "env_name": "默认环境",
61
- "env_pre_url": "1",
60
+ "env_pre_url": "",
62
61
  "env_pre_urls": {
63
62
  "1": {
64
- "server_id": "1",
63
+ "sort": 200,
65
64
  "name": "默认服务",
66
- "sort": 1000,
67
- "uri": "1"
65
+ "server_id": "1",
66
+ "server_type": 1,
67
+ "uri": ""
68
68
  },
69
69
  "default": {
70
- "server_id": "1",
70
+ "sort": 200,
71
71
  "name": "默认服务",
72
- "sort": 1000,
73
- "uri": "1"
74
- },
75
- "43daa1c864e0000": {
76
- "server_id": "43daa1c864e0000",
77
- "name": "2",
78
- "sort": 2000,
79
- "uri": "2"
72
+ "server_id": "1",
73
+ "server_type": 1,
74
+ "uri": ""
80
75
  }
81
76
  },
82
77
  "environment": {
83
- "key": "value",
84
- "no": "512",
85
- "userid": 8
78
+ "name": "456"
86
79
  }
87
80
  },
88
81
  "cookies": {
89
- "switch": -1,
90
- "data": []
82
+ "switch": 1,
83
+ "data": [
84
+ {
85
+ "key": "security_session_verify",
86
+ "value": "4560bdb4c5ddc22643bc99515ea21fcf",
87
+ "expires": "2025-04-19T02:21:42.000Z",
88
+ "path": "/",
89
+ "httpOnly": true,
90
+ "creation": "2025-04-15T18:21:42.735Z",
91
+ "name": "security_session_verify",
92
+ "cookie_id": "2d37c52f8337a",
93
+ "domain": "echo.apipost.cn",
94
+ "project_id": "25abf413b9019"
95
+ },
96
+ {
97
+ "key": "security_session_verify",
98
+ "value": "4560bdb4c5ddc22643bc99515ea21fcf",
99
+ "expires": "2025-04-19T02:21:29.000Z",
100
+ "path": "/",
101
+ "httpOnly": true,
102
+ "creation": "2025-04-15T18:21:29.432Z",
103
+ "name": "security_session_verify",
104
+ "cookie_id": "2d37c52f8337b",
105
+ "domain": "echo.apipost.cn",
106
+ "project_id": "25abf413b9019"
107
+ },
108
+ {
109
+ "key": "cookie-test1-folder",
110
+ "value": "B",
111
+ "expires": "Tue, 15 Apr 2025 19:21:42 GMT",
112
+ "maxAge": 3600,
113
+ "domain": "echo.apipost.cn",
114
+ "path": "/echo",
115
+ "creation": "2025-04-15T18:21:42.734Z",
116
+ "name": "cookie-test1-folder",
117
+ "cookie_id": "2d37c52f8337c",
118
+ "project_id": "25abf413b9019"
119
+ },
120
+ {
121
+ "key": "cookie-test1",
122
+ "value": "0",
123
+ "expires": "Tue, 15 Apr 2025 19:21:42 GMT",
124
+ "maxAge": 3600,
125
+ "domain": "echo.apipost.cn",
126
+ "path": "/",
127
+ "creation": "2025-04-15T18:21:42.734Z",
128
+ "name": "cookie-test1",
129
+ "cookie_id": "2d37c52f8337d",
130
+ "project_id": "25abf413b9019"
131
+ },
132
+ {
133
+ "key": "cookie-test2",
134
+ "value": "0",
135
+ "expires": "Tue, 15 Apr 2025 19:21:42 GMT",
136
+ "maxAge": 3600,
137
+ "domain": "echo.apipost.cn",
138
+ "path": "/",
139
+ "creation": "2025-04-15T18:21:42.734Z",
140
+ "name": "cookie-test2",
141
+ "cookie_id": "2d37c52f8337e",
142
+ "project_id": "25abf413b9019"
143
+ },
144
+ {
145
+ "key": "cookie-test3",
146
+ "value": "%25E4%25BD%25A0%25E5%25A5%25BD",
147
+ "expires": "Tue, 15 Apr 2025 19:21:42 GMT",
148
+ "maxAge": 3600,
149
+ "domain": "echo.apipost.cn",
150
+ "path": "/",
151
+ "creation": "2025-04-15T18:21:42.734Z",
152
+ "name": "cookie-test3",
153
+ "cookie_id": "2d37c52f8337f",
154
+ "project_id": "25abf413b9019"
155
+ },
156
+ {
157
+ "key": "cookie-test6",
158
+ "value": "deleted",
159
+ "expires": "Tue, 15 Apr 2025 18:21:42 GMT",
160
+ "maxAge": 0,
161
+ "domain": "echo.apipost.cn",
162
+ "path": "/",
163
+ "creation": "2025-04-15T18:21:42.735Z",
164
+ "name": "cookie-test6",
165
+ "cookie_id": "2d37c53383382",
166
+ "project_id": "25abf413b9019"
167
+ },
168
+ {
169
+ "key": "cookie-test7",
170
+ "value": "0",
171
+ "expires": "Tue, 15 Apr 2025 18:21:42 GMT",
172
+ "maxAge": 0,
173
+ "domain": "echo.apipost.cn",
174
+ "path": "/",
175
+ "creation": "2025-04-15T18:21:42.735Z",
176
+ "name": "cookie-test7",
177
+ "cookie_id": "2d37c53383383",
178
+ "project_id": "25abf413b9019"
179
+ },
180
+ {
181
+ "key": "cookie-test8",
182
+ "value": "renge%3D%3D%3B-%2F%3F",
183
+ "creation": "2025-04-15T18:21:42.735Z",
184
+ "name": "cookie-test8",
185
+ "cookie_id": "2d37c53383384",
186
+ "domain": "echo.apipost.cn",
187
+ "project_id": "25abf413b9019"
188
+ },
189
+ {
190
+ "key": "httponly-cookie",
191
+ "value": "httponly-value",
192
+ "httpOnly": true,
193
+ "creation": "2025-04-15T18:21:42.735Z",
194
+ "name": "httponly-cookie",
195
+ "cookie_id": "2d37c53383385",
196
+ "domain": "echo.apipost.cn",
197
+ "project_id": "25abf413b9019"
198
+ },
199
+ {
200
+ "key": "security_session_verify",
201
+ "value": "4560bdb4c5ddc22643bc99515ea21fcf",
202
+ "expires": "2025-04-19T02:21:29.000Z",
203
+ "path": "/",
204
+ "httpOnly": true,
205
+ "creation": "2025-04-15T18:21:29.434Z",
206
+ "name": "security_session_verify",
207
+ "cookie_id": "2d37c53383386",
208
+ "domain": "echo.apipost.cn",
209
+ "project_id": "25abf413b9019"
210
+ },
211
+ {
212
+ "key": "cookie-test4",
213
+ "value": "%E4%BD%A0%E5%A5%BD%3D%3D%3D",
214
+ "expires": "Tue, 15 Apr 2025 19:21:42 GMT",
215
+ "maxAge": 3600,
216
+ "domain": "apipost.cn",
217
+ "path": "/",
218
+ "creation": "2025-04-15T18:21:42.734Z",
219
+ "name": "cookie-test4",
220
+ "cookie_id": "2d37c53383380",
221
+ "project_id": "25abf413b9019"
222
+ },
223
+ {
224
+ "key": "cookie-test5",
225
+ "value": "nihao",
226
+ "expires": "Tue, 15 Apr 2025 19:21:42 GMT",
227
+ "maxAge": 3600,
228
+ "domain": "apipost.cn",
229
+ "path": "/",
230
+ "creation": "2025-04-15T18:21:42.735Z",
231
+ "name": "cookie-test5",
232
+ "cookie_id": "2d37c53383381",
233
+ "project_id": "25abf413b9019"
234
+ },
235
+ {
236
+ "key": "BAIDUID",
237
+ "value": "1CB912D324BD1B0509A1632C8EA790C1:FG=1",
238
+ "expires": "Wed, 15 Apr 2026 18:36:06 GMT",
239
+ "maxAge": 31536000,
240
+ "domain": "baidu.com",
241
+ "path": "/",
242
+ "extensions": [
243
+ "version=1",
244
+ "comment=bd"
245
+ ],
246
+ "creation": "2025-04-15T18:36:05.974Z",
247
+ "name": "BAIDUID",
248
+ "cookie_id": "2d39bfc783390",
249
+ "project_id": "25abf413b9019"
250
+ },
251
+ {
252
+ "key": "BIDUPSID",
253
+ "value": "1CB912D324BD1B05DFCCB2D212B352AF",
254
+ "expires": "Sun, 03 May 2093 21:50:13 GMT",
255
+ "maxAge": 2147483647,
256
+ "domain": "baidu.com",
257
+ "path": "/",
258
+ "creation": "2025-04-15T18:36:05.974Z",
259
+ "name": "BIDUPSID",
260
+ "cookie_id": "2d39bfc783391",
261
+ "project_id": "25abf413b9019"
262
+ },
263
+ {
264
+ "key": "PSTM",
265
+ "value": "1744742165",
266
+ "expires": "Sun, 03 May 2093 21:50:13 GMT",
267
+ "maxAge": 2147483647,
268
+ "domain": "baidu.com",
269
+ "path": "/",
270
+ "creation": "2025-04-15T18:36:05.974Z",
271
+ "name": "PSTM",
272
+ "cookie_id": "2d39bfc783392",
273
+ "project_id": "25abf413b9019"
274
+ },
275
+ {
276
+ "key": "BAIDUID",
277
+ "value": "8F497B41E833E0608F14CF9F3F3EFA5E:FG=1",
278
+ "expires": "Wed, 15 Apr 2026 18:22:01 GMT",
279
+ "maxAge": 31536000,
280
+ "domain": "baidu.com",
281
+ "path": "/",
282
+ "extensions": [
283
+ "version=1",
284
+ "comment=bd"
285
+ ],
286
+ "creation": "2025-04-15T18:22:01.243Z",
287
+ "name": "BAIDUID",
288
+ "cookie_id": "2d39bfcb83393",
289
+ "project_id": "25abf413b9019"
290
+ },
291
+ {
292
+ "key": "BDSVRTM",
293
+ "value": "4",
294
+ "path": "/",
295
+ "creation": "2025-04-15T18:36:05.974Z",
296
+ "name": "BDSVRTM",
297
+ "cookie_id": "2d39bfcb83394",
298
+ "domain": "www.baidu.com",
299
+ "project_id": "25abf413b9019"
300
+ },
301
+ {
302
+ "key": "BD_HOME",
303
+ "value": "1",
304
+ "path": "/",
305
+ "creation": "2025-04-15T18:36:05.974Z",
306
+ "name": "BD_HOME",
307
+ "cookie_id": "2d39bfcb83395",
308
+ "domain": "www.baidu.com",
309
+ "project_id": "25abf413b9019"
310
+ }
311
+ ]
91
312
  },
92
313
  "system_configs": {
93
314
  "send_timeout": 0,
94
315
  "auto_redirect": -1,
95
316
  "max_redirect_time": 5,
96
- "auto_gen_mock_url": -1,
317
+ "auto_gen_mock_url": 1,
97
318
  "request_param_auto_json": -1,
98
319
  "proxy": {
99
- "type": 1,
320
+ "type": 2,
100
321
  "envfirst": 1,
101
322
  "bypass": [],
102
- "protocols": [],
323
+ "protocols": [
324
+ "http"
325
+ ],
103
326
  "auth": {
104
327
  "authenticate": -1,
105
328
  "host": "",
@@ -108,1339 +331,97 @@ module.exports = {
108
331
  }
109
332
  },
110
333
  "ca_cert": {
111
- "open": -1,
112
- "path": ""
334
+ "open": 1,
335
+ "path": "",
336
+ "base64": ""
113
337
  },
114
338
  "client_cert": {}
115
339
  },
116
- "custom_functions": {
117
- "fn_test": "const date = new Date();\n// 提取年月日时分秒和毫秒(月份需加1)\nconst year = date.getFullYear();\nconst month = String(date.getMonth() + 1).padStart(2, '0'); // 补零到2位[1,3](@ref)\nconst day = String(date.getDate()).padStart(2, '0');\nconst hours = String(date.getHours()).padStart(2, '0');\nconst minutes = String(date.getMinutes()).padStart(2, '0');\nconst seconds = String(date.getSeconds()).padStart(2, '0');\n// 补零到3位[1,5](@ref)\n// 拼接为\"YYYYMMDDHHmmssSSS\"格式(默认返回字符串避免精度丢失)\nreturn `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;"
118
- },
340
+ "custom_functions": {},
119
341
  "collection": [
120
342
  {
121
- "target_id": "3d53610d7d6015",
343
+ "target_id": "2d38b0c78338d",
122
344
  "target_type": "api",
123
345
  "parent_id": "0",
124
- "name": "User login",
346
+ "name": "新建接口",
125
347
  "request": {
126
348
  "auth": {
127
349
  "type": "inherit"
128
350
  },
351
+ "header": {
352
+ "parameter": []
353
+ },
354
+ "query": {
355
+ "query_add_equal": 1,
356
+ "parameter": []
357
+ },
358
+ "restful": {
359
+ "parameter": []
360
+ },
361
+ "cookie": {
362
+ "cookie_encode": 1,
363
+ "parameter": []
364
+ },
129
365
  "body": {
130
- "mode": "none",
366
+ "mode": "form-data",
131
367
  "parameter": [
132
368
  {
133
- "param_id": "17e6c2b93e4002",
134
- "description": "用户名",
135
- "field_type": "String",
136
- "is_checked": 1,
137
- "key": "username",
138
- "not_null": -1,
139
- "value": "admin",
140
- "content_type": "",
141
- "file_name": "",
142
- "file_base64": ""
143
- },
144
- {
145
- "param_id": "17e6c2b93e4003",
146
- "description": "密码",
147
- "field_type": "String",
369
+ "param_id": "2d3d7cb37139e",
370
+ "key": "name",
371
+ "value": "{{name}}",
372
+ "field_type": "string",
373
+ "not_null": 1,
374
+ "description": "",
148
375
  "is_checked": 1,
149
- "key": "password",
150
- "not_null": -1,
151
- "value": "123456",
152
- "content_type": "",
153
- "file_name": "",
154
- "file_base64": ""
376
+ "content_type": "string"
155
377
  },
156
378
  {
157
- "param_id": "1b33200fbe4000",
379
+ "param_id": "2d41beff6e3a4",
380
+ "key": "token",
381
+ "value": "",
382
+ "field_type": "string",
383
+ "not_null": 1,
158
384
  "description": "",
159
- "field_type": "String",
160
385
  "is_checked": 1,
161
- "key": "",
162
- "not_null": 1,
163
- "value": "",
164
- "content_type": "",
165
- "file_name": "",
166
- "file_base64": ""
386
+ "content_type": "string"
167
387
  }
168
388
  ],
389
+ "binary": "",
169
390
  "raw": "",
170
391
  "raw_parameter": [],
171
392
  "raw_schema": {
172
393
  "type": "object"
173
- },
174
- "binary": null
394
+ }
175
395
  },
176
396
  "pre_tasks": [],
177
- "post_tasks": [],
178
- "header": {
179
- "parameter": []
180
- },
181
- "query": {
182
- "query_add_equal": 1,
183
- "parameter": []
184
- },
185
- "cookie": {
186
- "parameter": []
187
- },
188
- "restful": {
189
- "parameter": []
190
- }
397
+ "post_tasks": [
398
+ {
399
+ "type": "customScript",
400
+ "id": "2d462a33833a8",
401
+ "name": "自定义脚本",
402
+ "enabled": 1,
403
+ "data": "apt.globals.set(\"age\", \"123\");apt.environment.set(\"key1\", \"value222\");"
404
+ }
405
+ ]
191
406
  },
192
407
  "parents": [],
193
- "method": "POST",
408
+ "method": "GET",
194
409
  "protocol": "http/1.1",
195
- "url": "https://echo.apipost.cn/userlogin.php",
196
- "pre_url": "1"
410
+ "url": "echo.apipost.cn/get.php",
411
+ "pre_url": ""
197
412
  }
198
413
  ],
199
- "database_configs": {
200
- "2dc61e097464000": {
201
- "type": "mysql",
202
- "dbconfig": {
203
- "host": "10.10.10.20",
204
- "port": 3306,
205
- "user": "root",
206
- "password": "12333333333",
207
- "database": "apipost",
208
- "auth_source": ""
209
- },
210
- "ssh": {
211
- "enable": -1,
212
- "host": "",
213
- "port": 0,
214
- "auth_type": 1,
215
- "username": "",
216
- "password": "",
217
- "private_key": "",
218
- "passphrase": ""
219
- }
220
- }
221
- },
222
- "name": "新建用例",
223
- "ignore_error": -1,
224
- "enable_sandbox": -1,
225
- "iterationCount": 1,
226
- "sleep": 0,
227
- "testing_id": "270a34e2b9f019",
228
- "iterates_data_id": "0",
229
- "iterationData": []
414
+ "database_configs": {}
230
415
  },
231
416
  "test_events": [
232
- // {
233
- // "parent_event_id": "0",
234
- // "enabled": 1,
235
- // "type": "script",
236
- // "data": {
237
- // "name": "脚本",
238
- // "content": `
239
- // try {
240
- // const resultRsaStr = await pm.execute("/Users/2024//RSAEnc.jar", [{"name":"123"}]);
241
- // console.log(resultRsaStr)
242
- // } catch (e) {
243
- // console.log("执行脚本出错")
244
- // console.log(e)
245
- // }
246
- // `
247
- // },
248
- // "project_id": "2cf6deb75864000",
249
- // "test_id": "270a34e2b9f019",
250
- // "event_id": "1956a01f7c01b",
251
- // "sort": 4
252
- // },
253
- // {
254
- // "parent_event_id": "0",
255
- // "enabled": 1,
256
- // "type": "sql",
257
- // "data": {
258
- // "connectionId": "2dc61e097464000",
259
- // "isConsoleOutput": 1,
260
- // "query": "select * from user limit 0,2",
261
- // "variables": []
262
- // },
263
- // "project_id": "2cf6deb75864000",
264
- // "test_id": "270a34e2b9f019",
265
- // "event_id": "178664d77c014",
266
- // "sort": 4
267
- // },
268
- // {
269
- // "type": "api",
270
- // "auto_sync": false,
271
- // "test_id": "270a34e2b9f019",
272
- // "event_id": "3a76fca3f9f002",
273
- // "enabled": 1,
274
- // "data": {
275
- // "target_id": "3dc7c7a076d024",
276
- // "project_id": "2cf6deb75864000",
277
- // "parent_id": "0",
278
- // "target_type": "api",
279
- // "apiData": {
280
- // "name": "User login",
281
- // "method": "POST",
282
- // "protocol": "http/1.1",
283
- // "url": "https://echo.apipost.cn/userlogin.php",
284
- // "request": {
285
- // "query": {
286
- // "parameter": [],
287
- // "query_add_equal": 1
288
- // },
289
- // "cookie": {
290
- // "parameter": []
291
- // },
292
- // "header": {
293
- // "parameter": []
294
- // },
295
- // "restful": {
296
- // "parameter": []
297
- // },
298
- // "pre_tasks": [],
299
- // "post_tasks": [],
300
- // "auth": {
301
- // "type": "inherit"
302
- // },
303
- // "body": {
304
- // "mode": "form-data",
305
- // "binary": null,
306
- // "parameter": [
307
- // {
308
- // "key": "username",
309
- // "not_null": -1,
310
- // "param_id": "17e6c2b93e4002",
311
- // "is_checked": 1,
312
- // "content_type": "",
313
- // "value": "admin",
314
- // "file_name": "",
315
- // "field_type": "String",
316
- // "description": "用户名",
317
- // "file_base64": ""
318
- // },
319
- // {
320
- // "key": "password",
321
- // "is_checked": 1,
322
- // "content_type": "",
323
- // "description": "密码",
324
- // "file_base64": "",
325
- // "value": "123456",
326
- // "not_null": -1,
327
- // "param_id": "17e6c2b93e4003",
328
- // "file_name": "",
329
- // "field_type": "String"
330
- // },
331
- // {
332
- // "key": "",
333
- // "value": "",
334
- // "param_id": "1b33200fbe4000",
335
- // "file_name": "",
336
- // "is_checked": 1,
337
- // "description": "",
338
- // "file_base64": "",
339
- // "not_null": 1,
340
- // "field_type": "String",
341
- // "content_type": ""
342
- // }
343
- // ],
344
- // "raw_schema": {
345
- // "type": "object"
346
- // },
347
- // "raw_parameter": [],
348
- // "raw": ""
349
- // }
350
- // }
351
- // }
352
- // }
353
- // },
354
- // {
355
- // "parent_event_id": "0",
356
- // "enabled": 1,
357
- // "type": "wait",
358
- // "data": {
359
- // "sleep": "1000"
360
- // },
361
- // "project_id": "2cf6deb75864000",
362
- // "test_id": "270a34e2b9f019",
363
- // "event_id": "167019c37c00c",
364
- // "sort": 2
365
- // },
366
- // {
367
- // "parent_event_id": "0",
368
- // "enabled": 1,
369
- // "type": "loop",
370
- // "children": [
371
- // {
372
- // "type": "api",
373
- // "auto_sync": true,
374
- // "test_id": "3d53fabfbd602c",
375
- // "event_id": "3d544fb0bd602e",
376
- // "enabled": 1,
377
- // "data": {
378
- // "target_id": "3d53610d7d6015",
379
- // "project_id": "2adc267c9064000",
380
- // "parent_id": "0",
381
- // "target_type": "api"
382
- // }
383
- // },
384
- // ],
385
- // "data": {
386
- // "name": "循环",
387
- // "loop_type": 2,
388
- // "sleep": 2,
389
- // "loop_timeout": 0,
390
- // "enable_data": 1,
391
- // "loop_data_type": 2,
392
- // "loop_iteration_data": "3a76fca3f9f002",
393
- // "loop_extract": {
394
- // "var": 4
395
- // },
396
- // "limit": 1,
397
- // "loop_traverse_data": {
398
- // "type": 1,
399
- // "iterationData": [],
400
- // "name": ""
401
- // }
402
- // },
403
- // "project_id": "2cf6deb75864000",
404
- // "test_id": "270a34e2b9f019",
405
- // "event_id": "16d245b77c010",
406
- // "sort": 3
407
- // },
408
-
409
417
  {
410
418
  "type": "api",
411
- "auto_sync": true,
412
- "test_id": "3d53fabfbd602c",
413
- "event_id": "3d544fb0bd602e",
414
- "enabled": 1,
415
419
  "data": {
416
- "target_id": "3d53610d7d6015",
417
- "project_id": "2adc267c9064000",
420
+ "target_id": "2d38b0c78338d",
421
+ "project_id": "25abf413b9019",
418
422
  "parent_id": "0",
419
423
  "target_type": "api"
420
424
  }
421
- },
422
- // {
423
- // "parent_event_id": "0",
424
- // "enabled": 1,
425
- // "type": "wait",
426
- // "data": {
427
- // "sleep": "{{$randomInt}}"
428
- // },
429
- // "project_id": "2cf6deb75864000",
430
- // "test_id": "270a34e2b9f019",
431
- // "event_id": "167019c37c00c",
432
- // "sort": 2
433
- // },
434
- // {
435
- // "type": "api",
436
- // "auto_sync": true,
437
- // "test_id": "3d53fabfbd602c",
438
- // "event_id": "3d544fb0bd602e",
439
- // "enabled": 1,
440
- // "data": {
441
- // "target_id": "3d55b1a07d6046",
442
- // "project_id": "2adc267c9064000",
443
- // "parent_id": "0",
444
- // "target_type": "api"
445
- // }
446
- // }
447
- // {
448
- // "enabled": 1,
449
- // "test_id": "3d54e930fd6033",
450
- // "event_id": "3d54f0babd6034",
451
- // "project_id": "2adc267c9064000",
452
- // "parent_event_id": "0",
453
- // "data": {
454
- // "connectionId": "2b9e0de71864000",
455
- // "isConsoleOutput": -1,
456
- // "name": "数据库",
457
- // "query": "select * from user limit 0,1",
458
- // "variables": []
459
- // },
460
- // "sort": 0,
461
- // "type": "sql"
462
- // },
463
- // {
464
- // "type": "api",
465
- // "auto_sync": true,
466
- // "test_id": "1",
467
- // "event_id": "3d544fb0bd602e",
468
- // "enabled": 1,
469
- // "data": {
470
- // "target_id": "3d53610d7d6015",
471
- // "project_id": "2adc267c9064000",
472
- // "parent_id": "0",
473
- // "target_type": "api"
474
- // }
475
- // },
476
- // {
477
- // "parent_event_id": "0",
478
- // "enabled": 1,
479
- // "type": "begin",
480
- // "data": {
481
- // "name": "事务",
482
- // "enable_data": 1,
483
- // "iterationData": [
484
- // {
485
- // "isClient": "0",
486
- // "MachineID": "null",
487
- // "CustomUUID": "9983CF14-74A2-4ADE-B546-D2C12C21BF08",
488
- // "i18nextLng": "en",
489
- // "Date": "2024-10-12",
490
- // "UserID": "guest"
491
- // },
492
- // {
493
- // "i18nextLng": "en",
494
- // "Date": "2024-10-12",
495
- // "UserID": "31cddf149001000",
496
- // "isClient": "0",
497
- // "MachineID": "2ad32260356000",
498
- // "CustomUUID": "79DD96F0-ED5D-4B3B-B3AD-A04702D52907"
499
- // },
500
- // {
501
- // "Date": "2024-10-12",
502
- // "UserID": "31a3fbb25801000",
503
- // "isClient": "0",
504
- // "MachineID": "0039b65c6db6c000",
505
- // "CustomUUID": "A250B154-4367-4EFF-8F5D-419ACA1E8971",
506
- // "i18nextLng": "ja"
507
- // },
508
- // {
509
- // "UserID": "313c2d1a7401000",
510
- // "isClient": "0",
511
- // "MachineID": "2ee1129fbca000",
512
- // "CustomUUID": "61F42C06-3B67-4A89-A209-7AB0DA909487",
513
- // "i18nextLng": "en",
514
- // "Date": "2024-10-12"
515
- // },
516
- // {
517
- // "isClient": "0",
518
- // "MachineID": "2d1fb1df3e2000",
519
- // "CustomUUID": "75E045A2-A57C-4295-85F4-63DFD5979C4D",
520
- // "i18nextLng": "ja",
521
- // "Date": "2024-10-12",
522
- // "UserID": "352d0b5a2401000"
523
- // },
524
- // {
525
- // "Date": "2024-10-12",
526
- // "UserID": "guest",
527
- // "isClient": "0",
528
- // "MachineID": "null",
529
- // "CustomUUID": "3484C818-E831-4B27-9E3B-49E4B580D45A",
530
- // "i18nextLng": "en"
531
- // },
532
- // {
533
- // "UserID": "32d5f970e801000",
534
- // "isClient": "0",
535
- // "MachineID": "2d5ed4f2fd4000",
536
- // "CustomUUID": "9925F05A-3277-4BCF-B7D3-F4FAD59EDE0E",
537
- // "i18nextLng": "ja",
538
- // "Date": "2024-10-12"
539
- // },
540
- // {
541
- // "i18nextLng": "en",
542
- // "Date": "2024-10-12",
543
- // "UserID": "32c4a8837c02000",
544
- // "isClient": "1",
545
- // "MachineID": "25f44ed3f4d000",
546
- // "CustomUUID": "1931AF65-4EAD-4195-B9F7-7744CBAD600B"
547
- // },
548
- // {
549
- // "CustomUUID": "75DF80F5-038E-4D60-AEC8-C66BAAB69D47",
550
- // "i18nextLng": "en",
551
- // "Date": "2024-10-12",
552
- // "UserID": "3234602f6c01000",
553
- // "isClient": "0",
554
- // "MachineID": "2d6f48b5701000"
555
- // },
556
- // {
557
- // "UserID": "3260c89b4c02000",
558
- // "isClient": "1",
559
- // "MachineID": "2c3e9c55f88000",
560
- // "CustomUUID": "412C9CAA-12CA-4A78-A545-1D267D61A682",
561
- // "i18nextLng": "en",
562
- // "Date": "2024-10-12"
563
- // },
564
- // {
565
- // "i18nextLng": "en",
566
- // "Date": "2024-10-12",
567
- // "UserID": "guest",
568
- // "isClient": "0",
569
- // "MachineID": "null",
570
- // "CustomUUID": "00D1DEC7-CAF2-4792-9513-F5E344A8939F"
571
- // },
572
- // {
573
- // "i18nextLng": "en",
574
- // "Date": "2024-10-12",
575
- // "UserID": "3540236d9c02000",
576
- // "isClient": "0",
577
- // "MachineID": "14024f80b49000",
578
- // "CustomUUID": "D042F687-7E00-46AB-B24D-42D0EF3FCB97"
579
- // },
580
- // {
581
- // "Date": "2024-10-12",
582
- // "UserID": "guest",
583
- // "isClient": "0",
584
- // "MachineID": "f9eb527d7000",
585
- // "CustomUUID": "78CA0061-4540-4C7C-88B2-638F2B46B617",
586
- // "i18nextLng": "en"
587
- // },
588
- // {
589
- // "MachineID": "1d13947b7e2000",
590
- // "CustomUUID": "332141E7-3525-48DE-AA5B-F0D504839E63",
591
- // "i18nextLng": "ja",
592
- // "Date": "2024-10-12",
593
- // "UserID": "3260c89b4c02000",
594
- // "isClient": "0"
595
- // },
596
- // {
597
- // "CustomUUID": "E503F98D-6EB2-488D-886A-BD776ECF6045",
598
- // "i18nextLng": "en",
599
- // "Date": "2024-10-12",
600
- // "UserID": "guest",
601
- // "isClient": "0",
602
- // "MachineID": "3d7c01183d2000"
603
- // },
604
- // {
605
- // "Date": "2024-10-12",
606
- // "UserID": "guest",
607
- // "isClient": "0",
608
- // "MachineID": "null",
609
- // "CustomUUID": "265863E1-A3C2-44A7-9AF3-2FE14B78C130",
610
- // "i18nextLng": "en"
611
- // },
612
- // {
613
- // "UserID": "guest",
614
- // "isClient": "0",
615
- // "MachineID": "1435d08fb78000",
616
- // "CustomUUID": "D505E7C8-07D1-44C5-A196-F2B2F005AD48",
617
- // "i18nextLng": "en",
618
- // "Date": "2024-10-12"
619
- // },
620
- // {
621
- // "i18nextLng": "en",
622
- // "Date": "2024-10-12",
623
- // "UserID": "guest",
624
- // "isClient": "0",
625
- // "MachineID": "5481cfab57000",
626
- // "CustomUUID": "32B764AF-1187-4B5C-A15E-ED5B732C6973"
627
- // },
628
- // {
629
- // "isClient": "0",
630
- // "MachineID": "null",
631
- // "CustomUUID": "470C4667-12C7-4986-9358-B10268863C2F",
632
- // "i18nextLng": "en",
633
- // "Date": "2024-10-12",
634
- // "UserID": "guest"
635
- // },
636
- // {
637
- // "Date": "2024-10-12",
638
- // "UserID": "guest",
639
- // "isClient": "0",
640
- // "MachineID": "3d7c15ff36c000",
641
- // "CustomUUID": "C50870BD-BD1D-4C66-B890-9D8FE8CAF14F",
642
- // "i18nextLng": "en"
643
- // },
644
- // {
645
- // "isClient": "0",
646
- // "MachineID": "null",
647
- // "CustomUUID": "45832060-0203-4523-BDEA-D1DA5C1BFB40",
648
- // "i18nextLng": "ja",
649
- // "Date": "2024-10-12",
650
- // "UserID": "guest"
651
- // },
652
- // {
653
- // "Date": "2024-10-12",
654
- // "UserID": "guest",
655
- // "isClient": "0",
656
- // "MachineID": "null",
657
- // "CustomUUID": "12FE169A-F299-4782-BD4D-2ED71E01DC70",
658
- // "i18nextLng": "en"
659
- // },
660
- // {
661
- // "MachineID": "a4e608b324000",
662
- // "CustomUUID": "F7A6D232-5E5D-42C5-82E9-B07F884FB828",
663
- // "i18nextLng": "en",
664
- // "Date": "2024-10-12",
665
- // "UserID": "313a03fa3464000",
666
- // "isClient": "0"
667
- // },
668
- // {
669
- // "i18nextLng": "en",
670
- // "Date": "2024-10-12",
671
- // "UserID": "guest",
672
- // "isClient": "0",
673
- // "MachineID": "null",
674
- // "CustomUUID": "D44E46B6-F4A6-423C-AD58-0D9B47ABDF5D"
675
- // },
676
- // {
677
- // "i18nextLng": "en",
678
- // "Date": "2024-10-12",
679
- // "UserID": "305486b93864000",
680
- // "isClient": "0",
681
- // "MachineID": "21ed741cf62000",
682
- // "CustomUUID": "E63BA51E-C723-48E6-9EBE-1736FE4B7236"
683
- // },
684
- // {
685
- // "UserID": "guest",
686
- // "isClient": "0",
687
- // "MachineID": "null",
688
- // "CustomUUID": "D0380EE5-F703-4DDD-9399-805B63413C9B",
689
- // "i18nextLng": "en",
690
- // "Date": "2024-10-12"
691
- // },
692
- // {
693
- // "i18nextLng": "en",
694
- // "Date": "2024-10-12",
695
- // "UserID": "guest",
696
- // "isClient": "0",
697
- // "MachineID": "null",
698
- // "CustomUUID": "A221999E-EC99-4976-A942-72CDE2A1FD77"
699
- // },
700
- // {
701
- // "Date": "2024-10-12",
702
- // "UserID": "3020435fd864000",
703
- // "isClient": "1",
704
- // "MachineID": "1d1260adfc5000",
705
- // "CustomUUID": "88756232-0D2E-4F47-9E52-4621C8481D17",
706
- // "i18nextLng": "en"
707
- // },
708
- // {
709
- // "i18nextLng": "en",
710
- // "Date": "2024-10-12",
711
- // "UserID": "guest",
712
- // "isClient": "0",
713
- // "MachineID": "null",
714
- // "CustomUUID": "F549BFC0-08AA-4661-A5B0-8B0E352D1B44"
715
- // },
716
- // {
717
- // "isClient": "0",
718
- // "MachineID": "null",
719
- // "CustomUUID": "A070558D-4828-4578-8C39-6A2A80DAAA9F",
720
- // "i18nextLng": "en",
721
- // "Date": "2024-10-12",
722
- // "UserID": "guest"
723
- // },
724
- // {
725
- // "i18nextLng": "en",
726
- // "Date": "2024-10-12",
727
- // "UserID": "guest",
728
- // "isClient": "0",
729
- // "MachineID": "null",
730
- // "CustomUUID": "54EA919A-15CF-4F8A-A851-1553B9A1EA54"
731
- // },
732
- // {
733
- // "CustomUUID": "D5F6CCBE-F4DC-4E62-BF1B-2FA3451EE542",
734
- // "i18nextLng": "ja",
735
- // "Date": "2024-10-12",
736
- // "UserID": "guest",
737
- // "isClient": "0",
738
- // "MachineID": "3cdbf17b309000"
739
- // }
740
- // ],
741
- // "iterates_data_id": "3fe08cdafd6008"
742
- // },
743
- // "project_id": "2adc267c9064000",
744
- // "test_id": "3d53fabfbd602c",
745
- // "event_id": "3fe0c5667d6005",
746
- // "sort": 2,
747
- // "children": [
748
- // {
749
- // "type": "api",
750
- // "auto_sync": true,
751
- // "test_id": "3d53fabfbd602c",
752
- // "event_id": "3fe0cef43d600b",
753
- // "enabled": 1,
754
- // "data": {
755
- // "target_id": "2b835ab23069000",
756
- // "project_id": "2adc267c9064000",
757
- // "parent_id": "0",
758
- // "target_type": "api"
759
- // }
760
- // }
761
- // ]
762
- // },
763
- // {
764
- // "parent_event_id": "0",
765
- // "enabled": 1,
766
- // "type": "assert",
767
- // "data": {
768
- // "name": "全局断言",
769
- // "content": "apt.test(\"响应码为 200\", function () {\n apt.response.to.have.status(200);\n });"
770
- // },
771
- // "project_id": "2adc267c9064000",
772
- // "test_id": "3d53fabfbd602c",
773
- // "event_id": "3fe52dbb3d6014",
774
- // "sort": 4
775
- // },
776
- // {
777
- // "parent_event_id": "0",
778
- // "enabled": 1,
779
- // "type": "loop",
780
- // "data": {
781
- // "name": "循环",
782
- // "loop_type": 3,
783
- // "limit":2,
784
- // "sleep": 0,
785
- // "loop_timeout": 6000,
786
- // "enable_data": 1,
787
- // "loop_condition":{
788
- // "var": "99iiii",
789
- // "compare": "gte",
790
- // "value": "nnnnnnnn"
791
- // },
792
- // "loop_data_type": 1,
793
- // "loop_iteration_data": "3fe08cdafd6008",
794
- // "loop_traverse_data": {
795
- // "type": 1,
796
- // "iterationData": [
797
- // {
798
- // "isClient": "0",
799
- // "MachineID": "null",
800
- // "CustomUUID": "9983CF14-74A2-4ADE-B546-D2C12C21BF08",
801
- // "i18nextLng": "en",
802
- // "Date": "2024-10-12",
803
- // "UserID": "guest"
804
- // },
805
- // {
806
- // "i18nextLng": "en",
807
- // "Date": "2024-10-12",
808
- // "UserID": "31cddf149001000",
809
- // "isClient": "0",
810
- // "MachineID": "2ad32260356000",
811
- // "CustomUUID": "79DD96F0-ED5D-4B3B-B3AD-A04702D52907"
812
- // },
813
- // {
814
- // "Date": "2024-10-12",
815
- // "UserID": "31a3fbb25801000",
816
- // "isClient": "0",
817
- // "MachineID": "0039b65c6db6c000",
818
- // "CustomUUID": "A250B154-4367-4EFF-8F5D-419ACA1E8971",
819
- // "i18nextLng": "ja"
820
- // },
821
- // {
822
- // "UserID": "313c2d1a7401000",
823
- // "isClient": "0",
824
- // "MachineID": "2ee1129fbca000",
825
- // "CustomUUID": "61F42C06-3B67-4A89-A209-7AB0DA909487",
826
- // "i18nextLng": "en",
827
- // "Date": "2024-10-12"
828
- // },
829
- // {
830
- // "isClient": "0",
831
- // "MachineID": "2d1fb1df3e2000",
832
- // "CustomUUID": "75E045A2-A57C-4295-85F4-63DFD5979C4D",
833
- // "i18nextLng": "ja",
834
- // "Date": "2024-10-12",
835
- // "UserID": "352d0b5a2401000"
836
- // },
837
- // {
838
- // "Date": "2024-10-12",
839
- // "UserID": "guest",
840
- // "isClient": "0",
841
- // "MachineID": "null",
842
- // "CustomUUID": "3484C818-E831-4B27-9E3B-49E4B580D45A",
843
- // "i18nextLng": "en"
844
- // },
845
- // {
846
- // "UserID": "32d5f970e801000",
847
- // "isClient": "0",
848
- // "MachineID": "2d5ed4f2fd4000",
849
- // "CustomUUID": "9925F05A-3277-4BCF-B7D3-F4FAD59EDE0E",
850
- // "i18nextLng": "ja",
851
- // "Date": "2024-10-12"
852
- // },
853
- // {
854
- // "i18nextLng": "en",
855
- // "Date": "2024-10-12",
856
- // "UserID": "32c4a8837c02000",
857
- // "isClient": "1",
858
- // "MachineID": "25f44ed3f4d000",
859
- // "CustomUUID": "1931AF65-4EAD-4195-B9F7-7744CBAD600B"
860
- // },
861
- // {
862
- // "CustomUUID": "75DF80F5-038E-4D60-AEC8-C66BAAB69D47",
863
- // "i18nextLng": "en",
864
- // "Date": "2024-10-12",
865
- // "UserID": "3234602f6c01000",
866
- // "isClient": "0",
867
- // "MachineID": "2d6f48b5701000"
868
- // },
869
- // {
870
- // "UserID": "3260c89b4c02000",
871
- // "isClient": "1",
872
- // "MachineID": "2c3e9c55f88000",
873
- // "CustomUUID": "412C9CAA-12CA-4A78-A545-1D267D61A682",
874
- // "i18nextLng": "en",
875
- // "Date": "2024-10-12"
876
- // },
877
- // {
878
- // "i18nextLng": "en",
879
- // "Date": "2024-10-12",
880
- // "UserID": "guest",
881
- // "isClient": "0",
882
- // "MachineID": "null",
883
- // "CustomUUID": "00D1DEC7-CAF2-4792-9513-F5E344A8939F"
884
- // },
885
- // {
886
- // "i18nextLng": "en",
887
- // "Date": "2024-10-12",
888
- // "UserID": "3540236d9c02000",
889
- // "isClient": "0",
890
- // "MachineID": "14024f80b49000",
891
- // "CustomUUID": "D042F687-7E00-46AB-B24D-42D0EF3FCB97"
892
- // },
893
- // {
894
- // "Date": "2024-10-12",
895
- // "UserID": "guest",
896
- // "isClient": "0",
897
- // "MachineID": "f9eb527d7000",
898
- // "CustomUUID": "78CA0061-4540-4C7C-88B2-638F2B46B617",
899
- // "i18nextLng": "en"
900
- // },
901
- // {
902
- // "MachineID": "1d13947b7e2000",
903
- // "CustomUUID": "332141E7-3525-48DE-AA5B-F0D504839E63",
904
- // "i18nextLng": "ja",
905
- // "Date": "2024-10-12",
906
- // "UserID": "3260c89b4c02000",
907
- // "isClient": "0"
908
- // },
909
- // {
910
- // "CustomUUID": "E503F98D-6EB2-488D-886A-BD776ECF6045",
911
- // "i18nextLng": "en",
912
- // "Date": "2024-10-12",
913
- // "UserID": "guest",
914
- // "isClient": "0",
915
- // "MachineID": "3d7c01183d2000"
916
- // },
917
- // {
918
- // "Date": "2024-10-12",
919
- // "UserID": "guest",
920
- // "isClient": "0",
921
- // "MachineID": "null",
922
- // "CustomUUID": "265863E1-A3C2-44A7-9AF3-2FE14B78C130",
923
- // "i18nextLng": "en"
924
- // },
925
- // {
926
- // "UserID": "guest",
927
- // "isClient": "0",
928
- // "MachineID": "1435d08fb78000",
929
- // "CustomUUID": "D505E7C8-07D1-44C5-A196-F2B2F005AD48",
930
- // "i18nextLng": "en",
931
- // "Date": "2024-10-12"
932
- // },
933
- // {
934
- // "i18nextLng": "en",
935
- // "Date": "2024-10-12",
936
- // "UserID": "guest",
937
- // "isClient": "0",
938
- // "MachineID": "5481cfab57000",
939
- // "CustomUUID": "32B764AF-1187-4B5C-A15E-ED5B732C6973"
940
- // },
941
- // {
942
- // "isClient": "0",
943
- // "MachineID": "null",
944
- // "CustomUUID": "470C4667-12C7-4986-9358-B10268863C2F",
945
- // "i18nextLng": "en",
946
- // "Date": "2024-10-12",
947
- // "UserID": "guest"
948
- // },
949
- // {
950
- // "Date": "2024-10-12",
951
- // "UserID": "guest",
952
- // "isClient": "0",
953
- // "MachineID": "3d7c15ff36c000",
954
- // "CustomUUID": "C50870BD-BD1D-4C66-B890-9D8FE8CAF14F",
955
- // "i18nextLng": "en"
956
- // },
957
- // {
958
- // "isClient": "0",
959
- // "MachineID": "null",
960
- // "CustomUUID": "45832060-0203-4523-BDEA-D1DA5C1BFB40",
961
- // "i18nextLng": "ja",
962
- // "Date": "2024-10-12",
963
- // "UserID": "guest"
964
- // },
965
- // {
966
- // "Date": "2024-10-12",
967
- // "UserID": "guest",
968
- // "isClient": "0",
969
- // "MachineID": "null",
970
- // "CustomUUID": "12FE169A-F299-4782-BD4D-2ED71E01DC70",
971
- // "i18nextLng": "en"
972
- // },
973
- // {
974
- // "MachineID": "a4e608b324000",
975
- // "CustomUUID": "F7A6D232-5E5D-42C5-82E9-B07F884FB828",
976
- // "i18nextLng": "en",
977
- // "Date": "2024-10-12",
978
- // "UserID": "313a03fa3464000",
979
- // "isClient": "0"
980
- // },
981
- // {
982
- // "i18nextLng": "en",
983
- // "Date": "2024-10-12",
984
- // "UserID": "guest",
985
- // "isClient": "0",
986
- // "MachineID": "null",
987
- // "CustomUUID": "D44E46B6-F4A6-423C-AD58-0D9B47ABDF5D"
988
- // },
989
- // {
990
- // "i18nextLng": "en",
991
- // "Date": "2024-10-12",
992
- // "UserID": "305486b93864000",
993
- // "isClient": "0",
994
- // "MachineID": "21ed741cf62000",
995
- // "CustomUUID": "E63BA51E-C723-48E6-9EBE-1736FE4B7236"
996
- // },
997
- // {
998
- // "UserID": "guest",
999
- // "isClient": "0",
1000
- // "MachineID": "null",
1001
- // "CustomUUID": "D0380EE5-F703-4DDD-9399-805B63413C9B",
1002
- // "i18nextLng": "en",
1003
- // "Date": "2024-10-12"
1004
- // },
1005
- // {
1006
- // "i18nextLng": "en",
1007
- // "Date": "2024-10-12",
1008
- // "UserID": "guest",
1009
- // "isClient": "0",
1010
- // "MachineID": "null",
1011
- // "CustomUUID": "A221999E-EC99-4976-A942-72CDE2A1FD77"
1012
- // },
1013
- // {
1014
- // "Date": "2024-10-12",
1015
- // "UserID": "3020435fd864000",
1016
- // "isClient": "1",
1017
- // "MachineID": "1d1260adfc5000",
1018
- // "CustomUUID": "88756232-0D2E-4F47-9E52-4621C8481D17",
1019
- // "i18nextLng": "en"
1020
- // },
1021
- // {
1022
- // "i18nextLng": "en",
1023
- // "Date": "2024-10-12",
1024
- // "UserID": "guest",
1025
- // "isClient": "0",
1026
- // "MachineID": "null",
1027
- // "CustomUUID": "F549BFC0-08AA-4661-A5B0-8B0E352D1B44"
1028
- // },
1029
- // {
1030
- // "isClient": "0",
1031
- // "MachineID": "null",
1032
- // "CustomUUID": "A070558D-4828-4578-8C39-6A2A80DAAA9F",
1033
- // "i18nextLng": "en",
1034
- // "Date": "2024-10-12",
1035
- // "UserID": "guest"
1036
- // },
1037
- // {
1038
- // "i18nextLng": "en",
1039
- // "Date": "2024-10-12",
1040
- // "UserID": "guest",
1041
- // "isClient": "0",
1042
- // "MachineID": "null",
1043
- // "CustomUUID": "54EA919A-15CF-4F8A-A851-1553B9A1EA54"
1044
- // },
1045
- // {
1046
- // "CustomUUID": "D5F6CCBE-F4DC-4E62-BF1B-2FA3451EE542",
1047
- // "i18nextLng": "ja",
1048
- // "Date": "2024-10-12",
1049
- // "UserID": "guest",
1050
- // "isClient": "0",
1051
- // "MachineID": "3cdbf17b309000"
1052
- // }
1053
- // ],
1054
- // "name": ""
1055
- // }
1056
- // },
1057
- // "children": [
1058
- // {
1059
- // "type": "api",
1060
- // "auto_sync": true,
1061
- // "test_id": "3d53fabfbd602c",
1062
- // "event_id": "loop3",
1063
- // "enabled": 1,
1064
- // "data": {
1065
- // "target_id": "3d53610d7d6015",
1066
- // "project_id": "2adc267c9064000",
1067
- // "parent_id": "0",
1068
- // "target_type": "api"
1069
- // }
1070
- // },
1071
- // {
1072
- // "type": "api",
1073
- // "auto_sync": true,
1074
- // "test_id": "3d53fabfbd602c",
1075
- // "event_id": "loop4",
1076
- // "enabled": 1,
1077
- // "data": {
1078
- // "target_id": "3d53610d7d6015",
1079
- // "project_id": "2adc267c9064000",
1080
- // "parent_id": "0",
1081
- // "target_type": "api"
1082
- // }
1083
- // }
1084
- // ],
1085
- // "project_id": "2adc267c9064000",
1086
- // "test_id": "3d53fabfbd602c",
1087
- // "event_id": "3fe57f987d601c",
1088
- // "sort": 6
1089
- // },
1090
- // {
1091
- // "parent_event_id": "0",
1092
- // "data": {
1093
- // "var": "1",
1094
- // "value": "1",
1095
- // "compare": "eq"
1096
- // },
1097
- // "sort": 1,
1098
- // "type": "if",
1099
- // "enabled": 1,
1100
- // "test_id": "3d54e930fd6033",
1101
- // "event_id": "2",
1102
- // "project_id": "2adc267c9064000",
1103
- // "children": [
1104
- // {
1105
- // "type": "api",
1106
- // "auto_sync": true,
1107
- // "test_id": "3d53fabfbd602c",
1108
- // "event_id": "3",
1109
- // "enabled": 1,
1110
- // "data": {
1111
- // "target_id": "3d53610d7d6015",
1112
- // "project_id": "2adc267c9064000",
1113
- // "parent_id": "0",
1114
- // "target_type": "api"
1115
- // }
1116
- // },
1117
- // {
1118
- // "parent_event_id": "0",
1119
- // "data": {
1120
- // "var": "1",
1121
- // "value": "1",
1122
- // "compare": "eq"
1123
- // },
1124
- // "sort": 1,
1125
- // "type": "if",
1126
- // "enabled": 1,
1127
- // "test_id": "3d54e930fd6033",
1128
- // "event_id": "4",
1129
- // "project_id": "2adc267c9064000",
1130
- // "children": [
1131
- // {
1132
- // "type": "api",
1133
- // "auto_sync": true,
1134
- // "test_id": "3d53fabfbd602c",
1135
- // "event_id": "5",
1136
- // "enabled": 1,
1137
- // "data": {
1138
- // "target_id": "3d53610d7d6015",
1139
- // "project_id": "2adc267c9064000",
1140
- // "parent_id": "0",
1141
- // "target_type": "api"
1142
- // }
1143
- // },
1144
- // {
1145
- // "type": "api",
1146
- // "auto_sync": true,
1147
- // "test_id": "3d53fabfbd602c",
1148
- // "event_id": "6",
1149
- // "enabled": 1,
1150
- // "data": {
1151
- // "target_id": "3d53610d7d6015",
1152
- // "project_id": "2adc267c9064000",
1153
- // "parent_id": "0",
1154
- // "target_type": "api"
1155
- // }
1156
- // }
1157
- // ]
1158
- // },
1159
- // {
1160
- // "type": "api",
1161
- // "auto_sync": true,
1162
- // "test_id": "3d53fabfbd602c",
1163
- // "event_id": "7",
1164
- // "enabled": 1,
1165
- // "data": {
1166
- // "target_id": "3d53610d7d6015",
1167
- // "project_id": "2adc267c9064000",
1168
- // "parent_id": "0",
1169
- // "target_type": "api"
1170
- // }
1171
- // }
1172
- // ]
1173
- // },
1174
- // {
1175
- // "type": "api",
1176
- // "auto_sync": false,
1177
- // "test_id": "3d53fabfbd602c",
1178
- // "event_id": "3d96e116fd6018",
1179
- // "enabled": 1,
1180
- // "data": {
1181
- // "target_id": "2b835ab23069000",
1182
- // "project_id": "2adc267c9064000",
1183
- // "parent_id": "0",
1184
- // "target_type": "api",
1185
- // "apiData": {
1186
- // "name": "Anything",
1187
- // "method": "POST",
1188
- // "protocol": "http/1.1",
1189
- // "url": "http://httpbin.org/anything?initParsedUrl={{initParsedUrl}}",
1190
- // "request": {
1191
- // "auth": {
1192
- // "type": "inherit"
1193
- // },
1194
- // "body": {
1195
- // "mode": "urlencoded",
1196
- // "parameter": [],
1197
- // "raw": "{\n \"id\": 1,\n \"name\": \"\"\n}",
1198
- // "raw_parameter": [
1199
- // {
1200
- // "param_id": "2b835c6eb86902c",
1201
- // "description": "用户主键id",
1202
- // "field_type": "Long",
1203
- // "is_checked": 1,
1204
- // "key": "id",
1205
- // "not_null": 1,
1206
- // "value": "1"
1207
- // },
1208
- // {
1209
- // "param_id": "2b835c6eb86902d",
1210
- // "description": "用户主键id",
1211
- // "field_type": "String",
1212
- // "is_checked": 1,
1213
- // "key": "name",
1214
- // "not_null": 1,
1215
- // "value": ""
1216
- // }
1217
- // ],
1218
- // "raw_schema": {
1219
- // "type": "object"
1220
- // },
1221
- // "binary": {}
1222
- // },
1223
- // "pre_tasks": [
1224
- // {
1225
- // "type": "database",
1226
- // "enabled": 1,
1227
- // "data": {
1228
- // "connectionId": "2b9e0de71864000",
1229
- // "isConsoleOutput": 1,
1230
- // "query": "select * from user limit 0,2",
1231
- // "variables": []
1232
- // },
1233
- // "name": "数据库",
1234
- // "id": "3d59fd65bd6066"
1235
- // }
1236
- // ],
1237
- // "post_tasks": [
1238
- // {
1239
- // "type": "customScript",
1240
- // "enabled": 1,
1241
- // "data": "pm.environment.set(\"initParsedUrl\", 201);",
1242
- // "name": "自定义脚本",
1243
- // "id": "3d53b40ffd6022"
1244
- // }
1245
- // ],
1246
- // "header": {
1247
- // "parameter": []
1248
- // },
1249
- // "query": {
1250
- // "query_add_equal": 1,
1251
- // "parameter": []
1252
- // },
1253
- // "cookie": {
1254
- // "cookie_encode": 1,
1255
- // "parameter": []
1256
- // },
1257
- // "restful": {
1258
- // "parameter": []
1259
- // }
1260
- // }
1261
- // }
1262
- // }
1263
- // },
1264
- // {
1265
- // "type": "sample",
1266
- // "auto_sync": false,
1267
- // "test_id": "270a34e2b9f019",
1268
- // "event_id": "3d97614437c014",
1269
- // "enabled": 1,
1270
- // "data": {
1271
- // "target_id": "3d97497d77c013",
1272
- // "project_id": "2cf6deb75864000",
1273
- // "parent_id": "0",
1274
- // "target_type": "sample",
1275
- // "apiData": {
1276
- // "name": "成功用例",
1277
- // "method": "POST",
1278
- // "protocol": "http/1.1",
1279
- // "url": "https://admin.apipost.cn/api/?m=sys&c=SysAdmin&a=doAdminLogin",
1280
- // "request": {
1281
- // "auth": {
1282
- // "type": "inherit"
1283
- // },
1284
- // "body": {
1285
- // "mode": "urlencoded",
1286
- // "parameter": [
1287
- // {
1288
- // "param_id": "20f0b14839f011",
1289
- // "description": "",
1290
- // "field_type": "String",
1291
- // "is_checked": 1,
1292
- // "key": "username",
1293
- // "not_null": 1,
1294
- // "value": "admin",
1295
- // "content_type": "",
1296
- // "file_name": "",
1297
- // "file_base64": ""
1298
- // },
1299
- // {
1300
- // "param_id": "20f0b14839f012",
1301
- // "description": "",
1302
- // "field_type": "String",
1303
- // "is_checked": 1,
1304
- // "key": "password",
1305
- // "not_null": 1,
1306
- // "value": "414913",
1307
- // "content_type": "",
1308
- // "file_name": "",
1309
- // "file_base64": ""
1310
- // }
1311
- // ],
1312
- // "raw": "",
1313
- // "raw_parameter": [],
1314
- // "raw_schema": {
1315
- // "type": "object"
1316
- // },
1317
- // "binary": null
1318
- // },
1319
- // "pre_tasks": [
1320
- // {
1321
- // "type": "customScript",
1322
- // "enabled": 1,
1323
- // "data": "// // try {\n// // const jarResultString = await apt.execute(\"demo.jar\", [JSON.stringify({ a: 1, b: 2 })]);\n// // const jarResult = JSON.parse(jarResultString);\n// // console.log(\"运行结果\", jarResult);\n// // } catch (e) {\n// // console.error(e.message);\n// // }\n\n// const process = require('net');\n// // const events =require('events');\n// console.log(process)",
1324
- // "name": "自定义脚本",
1325
- // "id": "318eb7c2393004"
1326
- // }
1327
- // ],
1328
- // "post_tasks": [
1329
- // {
1330
- // "type": "customScript",
1331
- // "enabled": 1,
1332
- // "data": "// pm.variables.set(\"key\", \"value\"); // 设置临时变量\n// pm.variables.get(\"key\"); // 获取临时变量\n// pm.variables.delete(\"key\"); // 删除临时变量\n// pm.setRequestQuery(\"key\", \"value\"); // 设置请求query\n// pm.removeRequestQuery(\"key\"); // 删除请求query\n// pm.setRequestHeader(\"key\", \"value\"); // 设置请求头\n// pm.removeRequestHeader(\"key\"); // 移除请求头\n// pm.setRequestBody(\"key\", \"value\"); //body必须为form-data或urlencode时才会生效\n// pm.removeRequestBody(\"key\"); // 删除请求body的某个参数\n// pm.setRequestBody({ \"key\": \"value\" }); //body必须为raw时才会生效\n\n// pm.response.json() // 返回响应的json格式\n// pm.response.text() // 返回响应的文本格式\n// pm.response.initParsedUrl; //返回响应码\n// pm.response.responseSize; // 相应大小\n// pm.response.responseTime; //返回响应时间\n// pm.response.status; // 响应码\n\n// console.log() // 打印日志\n// print() // 打印日志 \n\n\n\n\n\n\n// 不考虑下面\n\n// pm.test(\"响应时间小于 200ms\", function () {\n// pm.expect(1).to.be.below(2);\n// });\n\n//chai",
1333
- // "name": "自定义脚本",
1334
- // "id": "319639d8393007"
1335
- // },
1336
- // {
1337
- // "type": "assert",
1338
- // "enabled": 1,
1339
- // "data": {
1340
- // "type": "responseTime",
1341
- // "expression": {
1342
- // "path": "",
1343
- // "compareType": "lt",
1344
- // "compareValue": "200"
1345
- // }
1346
- // },
1347
- // "name": "断言",
1348
- // "id": "31982aefb93009"
1349
- // }
1350
- // ],
1351
- // "header": {
1352
- // "parameter": []
1353
- // },
1354
- // "query": {
1355
- // "query_add_equal": 1,
1356
- // "parameter": [
1357
- // {
1358
- // "param_id": "20f0a0b779f00b",
1359
- // "description": "",
1360
- // "field_type": "String",
1361
- // "is_checked": 1,
1362
- // "key": "m",
1363
- // "not_null": 1,
1364
- // "value": "sys"
1365
- // },
1366
- // {
1367
- // "param_id": "20f0a0b779f00c",
1368
- // "description": "",
1369
- // "field_type": "String",
1370
- // "is_checked": 1,
1371
- // "key": "c",
1372
- // "not_null": 1,
1373
- // "value": "SysAdmin"
1374
- // },
1375
- // {
1376
- // "param_id": "20f0a0b779f00d",
1377
- // "description": "",
1378
- // "field_type": "String",
1379
- // "is_checked": 1,
1380
- // "key": "a",
1381
- // "not_null": 1,
1382
- // "value": "doAdminLogin"
1383
- // }
1384
- // ]
1385
- // },
1386
- // "cookie": {
1387
- // "parameter": [
1388
- // {
1389
- // "param_id": "20f0bd1a35e015",
1390
- // "description": "",
1391
- // "field_type": "String",
1392
- // "is_checked": 1,
1393
- // "key": "PHPSESSID",
1394
- // "not_null": 1,
1395
- // "value": "28mklo9i7n7ccr9kq9pfq2nuns"
1396
- // }
1397
- // ]
1398
- // },
1399
- // "restful": {
1400
- // "parameter": []
1401
- // }
1402
- // }
1403
- // }
1404
- // }
1405
- // },
1406
- // {
1407
- // "type": "sample",
1408
- // "auto_sync": true,
1409
- // "test_id": "270a34e2b9f019",
1410
- // "event_id": "3d97901477c016",
1411
- // "enabled": 1,
1412
- // "data": {
1413
- // "target_id": "3d97497d77c013",
1414
- // "project_id": "2cf6deb75864000",
1415
- // "parent_id": "0",
1416
- // "target_type": "sample"
1417
- // }
1418
- // },
1419
- // {
1420
- // "type": "api",
1421
- // "auto_sync": true,
1422
- // "test_id": "3d53fabfbd602c",
1423
- // "event_id": "3d544fb0bd602d",
1424
- // "enabled": 1,
1425
- // "data": {
1426
- // "target_id": "2b835ab23069000",
1427
- // "project_id": "2adc267c9064000",
1428
- // "parent_id": "0",
1429
- // "target_type": "api"
1430
- // }
1431
- // },
1432
- // {
1433
- // "type": "api",
1434
- // "auto_sync": true,
1435
- // "test_id": "3d53fabfbd602c",
1436
- // "event_id": "3d544fb0bd602e",
1437
- // "enabled": 1,
1438
- // "data": {
1439
- // "target_id": "3d53610d7d6015",
1440
- // "project_id": "2adc267c9064000",
1441
- // "parent_id": "0",
1442
- // "target_type": "api"
1443
- // }
1444
- // }
425
+ }
1445
426
  ]
1446
427
  }