diff --git a/tests/cert_200.json b/tests/cert_200.json new file mode 100644 index 00000000..3f2913a6 --- /dev/null +++ b/tests/cert_200.json @@ -0,0 +1,2046 @@ +{ + "apifoxCli": "1.1.0", + "item": [ + { + "item": [ + { + "id": "fc5f21fd-f72c-4b13-a6be-8bb461482f39", + "name": "LG0101 账号密码登录(登录用户admin)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "login" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "method": "POST", + "baseUrl": "http://127.0.0.1:8000", + "body": { + "mode": "raw", + "raw": "{\r\n \"username\": \"admin\",\r\n \"password\": \"testtest123\"\r\n}", + "type": "application/json" + }, + "type": "http" + }, + "response": [], + "event": [ + { + "listen": "test", + "script": { + "id": "postProcessors.0.extractor", + "type": "text/javascript", + "exec": [ + "", + " if (JSON.setEnableBigInt) {", + " JSON.setEnableBigInt(undefined);", + " }", + " ", + " try{", + " ", + " const expression = pm.variables.replaceIn(`$.token`);", + " const JSONPath = require('jsonpath-plus').JSONPath;", + " const jsonData = pm.response.json();", + " let value = JSONPath({", + " json: jsonData,", + " path: expression,", + " wrap: false", + " });", + "", + " ", + " if (false && undefined !== undefined) {", + " if (Array.isArray(value)) {", + " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", + " } else {", + " value = undefined;", + " }", + " }", + " ", + " ", + " switch (typeof value) {", + " case 'object':", + " value = JSON.stringify(value);", + " break;", + " default:", + " value = String(value);", + " break;", + " }", + " ", + " pm.environment.set(`token`, value);console.log('已设置环境变量【token】,值为 【' + value + '】')", + " } catch(e) {", + " e.message = '提取变量【token】出错: ' + e.message;", + " throw e;", + " }", + " ", + " " + ] + } + }, + { + "listen": "test", + "script": { + "id": "postProcessors.1.extractor", + "type": "text/javascript", + "exec": [ + "", + " if (JSON.setEnableBigInt) {", + " JSON.setEnableBigInt(undefined);", + " }", + " ", + " try{", + " ", + " const expression = pm.variables.replaceIn(`$.id`);", + " const JSONPath = require('jsonpath-plus').JSONPath;", + " const jsonData = pm.response.json();", + " let value = JSONPath({", + " json: jsonData,", + " path: expression,", + " wrap: false", + " });", + "", + " ", + " if (false && undefined !== undefined) {", + " if (Array.isArray(value)) {", + " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", + " } else {", + " value = undefined;", + " }", + " }", + " ", + " ", + " switch (typeof value) {", + " case 'object':", + " value = JSON.stringify(value);", + " break;", + " default:", + " value = String(value);", + " break;", + " }", + " ", + " pm.variables.set(`user_id`, value);console.log('已设置临时变量【user_id】,值为 【' + value + '】')", + " } catch(e) {", + " e.message = '提取变量【user_id】出错: ' + e.message;", + " throw e;", + " }", + " ", + " " + ] + } + } + ], + "responseDefinition": { + "id": 4183271, + "apiDetailId": 5318056, + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "mock": { + "mock": "@string" + }, + "title": "权" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "token", + "id" + ] + }, + "defaultEnable": true, + "projectId": 0, + "ordering": 1, + "unpackerId": "", + "unpackerSetting": "", + "createdAt": "2021-07-29T14:43:37.000Z", + "updatedAt": "2021-08-12T16:27:18.000Z", + "deletedAt": null, + "folderId": 0, + "responseExamples": [], + "schemaDefinitions": {} + }, + "requestDefinition": { + "jsonSchema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "password": { + "type": "string", + "mock": { + "mock": "@string('lower', 1, 3)" + }, + "title": "密码" + } + }, + "required": [ + "username", + "password" + ] + } + }, + "metaInfo": { + "httpApiId": 5318056, + "httpApiCaseId": 135411171, + "httpApiName": "LG0101 账号密码登录", + "httpApiPath": "/login", + "httpApiMethod": "post", + "httpApiCaseName": "登录用户admin", + "id": "b5b86a5b-c478-4d71-88e1-74c8a7370a6d", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "f75cbda1-b180-4b68-a143-1d3007f68b34", + "name": "QZ0502 创建证书(无user)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "method": "POST", + "baseUrl": "http://127.0.0.1:8000", + "body": { + "mode": "raw", + "raw": "{\r\n \"cert\": {\r\n \"level\": 3,\r\n \"name\": \"yes\",\r\n \"place\": \"id labore eu irure\",\r\n \"sequence\": 1,\r\n \"scores\": [\r\n 85,\r\n 42,\r\n 36,\r\n 81,\r\n 58\r\n ],\r\n \"time\": \"1995-04-27\",\r\n \"grade\": \"ea eu\"\r\n },\r\n \"user\": \"\"\r\n}", + "type": "application/json" + }, + "type": "http" + }, + "response": [], + "event": [ + { + "listen": "test", + "script": { + "id": "postProcessors.0.extractor", + "type": "text/javascript", + "exec": [ + "", + " if (JSON.setEnableBigInt) {", + " JSON.setEnableBigInt(undefined);", + " }", + " ", + " try{", + " ", + " const expression = pm.variables.replaceIn(`$.ID`);", + " const JSONPath = require('jsonpath-plus').JSONPath;", + " const jsonData = pm.response.json();", + " let value = JSONPath({", + " json: jsonData,", + " path: expression,", + " wrap: false", + " });", + "", + " ", + " if (false && undefined !== undefined) {", + " if (Array.isArray(value)) {", + " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", + " } else {", + " value = undefined;", + " }", + " }", + " ", + " ", + " switch (typeof value) {", + " case 'object':", + " value = JSON.stringify(value);", + " break;", + " default:", + " value = String(value);", + " break;", + " }", + " ", + " pm.environment.set(`cert_id`, value);console.log('已设置环境变量【cert_id】,值为 【' + value + '】')", + " } catch(e) {", + " e.message = '提取变量【cert_id】出错: ' + e.message;", + " throw e;", + " }", + " ", + " " + ] + } + } + ], + "responseDefinition": { + "createdAt": "2024-01-17T11:56:09.114Z", + "updatedAt": "2024-01-17T11:56:09.114Z", + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀", + "readOnly": true + }, + "ID": { + "type": "string", + "title": "证书编号", + "mock": { + "mock": "@regexp(/PLPT01001\\d\\d\\d\\d\\d/)" + } + }, + "user": { + "anyOf": [ + { + "$ref": "#/definitions/1077996" + }, + { + "type": "null" + } + ] + } + }, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time", + "ID", + "user" + ], + "x-apifox-refs": {}, + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade", + "ID", + "user" + ] + }, + "defaultEnable": true, + "projectId": 404238, + "ordering": 1, + "apiDetailId": 129604673, + "tempId": "1701365743650", + "id": 35712287, + "responseExamples": [], + "schemaDefinitions": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + } + }, + "requestDefinition": { + "jsonSchema": { + "type": "object", + "properties": { + "cert": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀" + } + }, + "x-apifox-refs": {}, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time" + ], + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade" + ] + }, + "user": { + "type": [ + "integer", + "null" + ] + } + }, + "x-apifox-orders": [ + "cert", + "user" + ], + "required": [ + "cert", + "user" + ] + } + }, + "metaInfo": { + "httpApiId": 129604673, + "httpApiCaseId": 135412851, + "httpApiName": "QZ0502 创建证书", + "httpApiPath": "/certs", + "httpApiMethod": "post", + "httpApiCaseName": "无user", + "id": "6e52e4e6-3175-4536-9e6d-7d382c89ba50", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "751bdf25-e0c9-43fe-b1b7-db1820fb6a9e", + "name": "QZ0501 查询证书信息(QZ0501 查询证书信息)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs", + "{{cert_id}}" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + } + ], + "method": "GET", + "baseUrl": "http://127.0.0.1:8000", + "body": {}, + "type": "http" + }, + "response": [], + "event": [], + "responseDefinition": { + "createdAt": "2024-01-17T12:00:56.992Z", + "updatedAt": "2024-01-17T12:00:56.992Z", + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "cert": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀", + "readOnly": true + }, + "ID": { + "type": "string", + "title": "证书编号", + "mock": { + "mock": "@regexp(/PLPT01001\\d\\d\\d\\d\\d/)" + } + }, + "user": { + "anyOf": [ + { + "$ref": "#/definitions/1077996" + }, + { + "type": "null" + } + ] + } + }, + "x-apifox-refs": {}, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time", + "ID", + "user" + ], + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade", + "ID", + "user" + ] + } + }, + "x-apifox-orders": [ + "cert" + ], + "required": [ + "cert" + ] + }, + "defaultEnable": true, + "projectId": 404238, + "ordering": 1, + "apiDetailId": 129604401, + "tempId": "1701365369736", + "id": 361899012, + "responseExamples": [], + "schemaDefinitions": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + } + }, + "requestDefinition": { + "jsonSchema": {} + }, + "metaInfo": { + "httpApiId": 129604401, + "httpApiCaseId": 135411221, + "httpApiName": "QZ0501 查询证书信息", + "httpApiPath": "/certs/{id}", + "httpApiMethod": "get", + "httpApiCaseName": "QZ0501 查询证书信息", + "id": "ccfb2ddb-5779-4d30-9d39-fb5bb4d5d35c", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "1ef49c5e-5155-42d2-a382-63a24dd6b72e", + "name": "QZ0503 查询所有证书(QZ0503 查询所有证书)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [ + { + "disabled": false, + "key": "name", + "value": "yes" + }, + { + "disabled": false, + "key": "user", + "value": "" + } + ], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + } + ], + "method": "GET", + "baseUrl": "http://127.0.0.1:8000", + "body": {}, + "type": "http" + }, + "response": [], + "event": [], + "responseDefinition": { + "createdAt": "2024-01-17T12:01:04.715Z", + "updatedAt": "2024-01-17T12:01:04.715Z", + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "certs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀", + "readOnly": true + }, + "ID": { + "type": "string", + "title": "证书编号", + "mock": { + "mock": "@regexp(/PLPT01001\\d\\d\\d\\d\\d/)" + } + }, + "user": { + "anyOf": [ + { + "$ref": "#/definitions/1077996" + }, + { + "type": "null" + } + ] + } + }, + "x-apifox-refs": {}, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time", + "ID", + "user" + ], + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade", + "ID", + "user" + ] + } + } + }, + "x-apifox-orders": [ + "certs" + ], + "required": [ + "certs" + ] + }, + "defaultEnable": true, + "projectId": 404238, + "ordering": 1, + "apiDetailId": 129604857, + "tempId": "1701371632576", + "id": 361919492, + "responseExamples": [], + "schemaDefinitions": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + } + }, + "requestDefinition": { + "jsonSchema": {} + }, + "metaInfo": { + "httpApiId": 129604857, + "httpApiCaseId": 135411220, + "httpApiName": "QZ0503 查询所有证书", + "httpApiPath": "/certs", + "httpApiMethod": "get", + "httpApiCaseName": "QZ0503 查询所有证书", + "id": "f5c426ce-a8a1-4114-b784-538f3af6c13c", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "12f06a14-3473-4f4d-b3b4-2943fe4132dd", + "name": "QZ0502 创建证书(有user)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "method": "POST", + "baseUrl": "http://127.0.0.1:8000", + "body": { + "mode": "raw", + "raw": "{\r\n \"cert\": {\r\n \"level\": 1,\r\n \"name\": \"北海\",\r\n \"place\": \"ex sunt fugiat reprehenderit dolore\",\r\n \"sequence\": 1,\r\n \"scores\": [\r\n 93,\r\n 32,\r\n 23,\r\n 39,\r\n 73\r\n ],\r\n \"time\": \"1997-06-02\",\r\n \"grade\": \"fugiat non Lorem ex\"\r\n },\r\n \"user\": 1\r\n}", + "type": "application/json" + }, + "type": "http" + }, + "response": [], + "event": [ + { + "listen": "test", + "script": { + "id": "postProcessors.0.extractor", + "type": "text/javascript", + "exec": [ + "", + " if (JSON.setEnableBigInt) {", + " JSON.setEnableBigInt(undefined);", + " }", + " ", + " try{", + " ", + " const expression = pm.variables.replaceIn(`$.ID`);", + " const JSONPath = require('jsonpath-plus').JSONPath;", + " const jsonData = pm.response.json();", + " let value = JSONPath({", + " json: jsonData,", + " path: expression,", + " wrap: false", + " });", + "", + " ", + " if (false && undefined !== undefined) {", + " if (Array.isArray(value)) {", + " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", + " } else {", + " value = undefined;", + " }", + " }", + " ", + " ", + " switch (typeof value) {", + " case 'object':", + " value = JSON.stringify(value);", + " break;", + " default:", + " value = String(value);", + " break;", + " }", + " ", + " pm.environment.set(`cert_id`, value);console.log('已设置环境变量【cert_id】,值为 【' + value + '】')", + " } catch(e) {", + " e.message = '提取变量【cert_id】出错: ' + e.message;", + " throw e;", + " }", + " ", + " " + ] + } + } + ], + "responseDefinition": { + "createdAt": "2024-01-17T11:56:09.114Z", + "updatedAt": "2024-01-17T11:56:09.114Z", + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀", + "readOnly": true + }, + "ID": { + "type": "string", + "title": "证书编号", + "mock": { + "mock": "@regexp(/PLPT01001\\d\\d\\d\\d\\d/)" + } + }, + "user": { + "anyOf": [ + { + "$ref": "#/definitions/1077996" + }, + { + "type": "null" + } + ] + } + }, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time", + "ID", + "user" + ], + "x-apifox-refs": {}, + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade", + "ID", + "user" + ] + }, + "defaultEnable": true, + "projectId": 404238, + "ordering": 1, + "apiDetailId": 129604673, + "tempId": "1701365743650", + "id": 35712287, + "responseExamples": [], + "schemaDefinitions": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + } + }, + "requestDefinition": { + "jsonSchema": { + "type": "object", + "properties": { + "cert": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀" + } + }, + "x-apifox-refs": {}, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time" + ], + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade" + ] + }, + "user": { + "type": [ + "integer", + "null" + ] + } + }, + "x-apifox-orders": [ + "cert", + "user" + ], + "required": [ + "cert", + "user" + ] + } + }, + "metaInfo": { + "httpApiId": 129604673, + "httpApiCaseId": 135412852, + "httpApiName": "QZ0502 创建证书", + "httpApiPath": "/certs", + "httpApiMethod": "post", + "httpApiCaseName": "有user", + "id": "43ae1d5c-e283-4e0b-8a36-4f519820904d", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "57fabd07-7266-448d-8622-36bca7c16ca7", + "name": "QZ0503 查询所有证书(QZ0503 查询所有证书)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [ + { + "disabled": false, + "key": "name", + "value": "" + }, + { + "disabled": false, + "key": "user", + "value": "1" + } + ], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + } + ], + "method": "GET", + "baseUrl": "http://127.0.0.1:8000", + "body": {}, + "type": "http" + }, + "response": [], + "event": [], + "responseDefinition": { + "createdAt": "2024-01-17T12:01:04.715Z", + "updatedAt": "2024-01-17T12:01:04.715Z", + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "certs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀", + "readOnly": true + }, + "ID": { + "type": "string", + "title": "证书编号", + "mock": { + "mock": "@regexp(/PLPT01001\\d\\d\\d\\d\\d/)" + } + }, + "user": { + "anyOf": [ + { + "$ref": "#/definitions/1077996" + }, + { + "type": "null" + } + ] + } + }, + "x-apifox-refs": {}, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time", + "ID", + "user" + ], + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade", + "ID", + "user" + ] + } + } + }, + "x-apifox-orders": [ + "certs" + ], + "required": [ + "certs" + ] + }, + "defaultEnable": true, + "projectId": 404238, + "ordering": 1, + "apiDetailId": 129604857, + "tempId": "1701371632576", + "id": 361919492, + "responseExamples": [], + "schemaDefinitions": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + } + }, + "requestDefinition": { + "jsonSchema": {} + }, + "metaInfo": { + "httpApiId": 129604857, + "httpApiCaseId": 135411373, + "httpApiName": "QZ0503 查询所有证书", + "httpApiPath": "/certs", + "httpApiMethod": "get", + "httpApiCaseName": "QZ0503 查询所有证书", + "id": "8d8614b0-7dde-48f3-aaf4-9c3168427169", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "f8c4e85e-567d-4b72-93ce-f3016fef43bf", + "name": "QZ0501 查询证书信息(QZ0501 查询证书信息)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs", + "{{cert_id}}" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + } + ], + "method": "GET", + "baseUrl": "http://127.0.0.1:8000", + "body": {}, + "type": "http" + }, + "response": [], + "event": [], + "responseDefinition": { + "createdAt": "2024-01-17T12:00:56.992Z", + "updatedAt": "2024-01-17T12:00:56.992Z", + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "cert": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "title": "等级", + "enum": [ + 1, + 2, + 3 + ], + "x-apifox": { + "enumDescriptions": { + "1": "初级", + "2": "中级", + "3": "高级" + } + } + }, + "name": { + "type": "string", + "title": "参与者" + }, + "place": { + "type": "string", + "title": "地址" + }, + "sequence": { + "type": "integer", + "title": "第几次认证", + "mock": { + "mock": "1" + } + }, + "scores": { + "type": "string", + "title": "分数", + "description": "暂时是固定五个分数" + }, + "time": { + "type": "string", + "title": "时间", + "mock": { + "mock": "@date(\"yyyy-MM-dd\")" + }, + "format": "date", + "examples": [ + "2023-10-23" + ] + }, + "grade": { + "type": "string", + "title": "等级", + "description": "优秀", + "readOnly": true + }, + "ID": { + "type": "string", + "title": "证书编号", + "mock": { + "mock": "@regexp(/PLPT01001\\d\\d\\d\\d\\d/)" + } + }, + "user": { + "anyOf": [ + { + "$ref": "#/definitions/1077996" + }, + { + "type": "null" + } + ] + } + }, + "x-apifox-refs": {}, + "x-apifox-orders": [ + "level", + "name", + "place", + "sequence", + "grade", + "scores", + "time", + "ID", + "user" + ], + "required": [ + "level", + "name", + "place", + "sequence", + "scores", + "time", + "grade", + "ID", + "user" + ] + } + }, + "x-apifox-orders": [ + "cert" + ], + "required": [ + "cert" + ] + }, + "defaultEnable": true, + "projectId": 404238, + "ordering": 1, + "apiDetailId": 129604401, + "tempId": "1701365369736", + "id": 361899012, + "responseExamples": [], + "schemaDefinitions": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + } + }, + "requestDefinition": { + "jsonSchema": {} + }, + "metaInfo": { + "httpApiId": 129604401, + "httpApiCaseId": 135411372, + "httpApiName": "QZ0501 查询证书信息", + "httpApiPath": "/certs/{id}", + "httpApiMethod": "get", + "httpApiCaseName": "QZ0501 查询证书信息", + "id": "4dcda0b8-9018-416f-9896-2057612efef2", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + } + ], + "name": "QZ模块证书 200" + } + ], + "info": { + "name": "QZ模块证书 200" + }, + "dataSchemas": { + "1077996": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "avatar": { + "type": "string", + "mock": { + "mock": "@image('100x100')" + }, + "title": "头像" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "nickname", + "avatar", + "id" + ], + "title": "user_simple", + "name": "user_simple" + } + }, + "mockRules": { + "rules": [], + "enableSystemRule": true + }, + "environment": { + "id": 510825, + "name": "测试环境", + "baseUrl": "http://127.0.0.1:8000", + "baseUrls": { + "default": "http://127.0.0.1:8000" + }, + "variable": { + "id": "ab306e6e-34cb-4c0e-900c-ae7bcbe886d8", + "name": "测试环境", + "values": [ + { + "type": "any", + "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTcwNjA4NzI1NC45OTI0ODZ9.8xT_qRkxAcma58Ct5uqOI4pEQtZhtIUsrHVhwlquJRA", + "key": "token", + "isBindInitial": false, + "initialValue": "" + }, + { + "type": "any", + "value": "31", + "key": "quiz_id", + "initialValue": "" + }, + { + "type": "any", + "value": "16", + "key": "word_id_2", + "initialValue": "" + }, + { + "type": "any", + "value": "15", + "key": "word_id_1", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "token_2", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "word_id_3", + "initialValue": "" + }, + { + "type": "any", + "value": "2", + "key": "user_id", + "initialValue": "" + }, + { + "type": "any", + "value": "1", + "key": "article_id", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "comment_id_1", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "comment_id_2", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "like_num_2", + "initialValue": "" + }, + { + "type": "any", + "value": 6, + "key": "num_pre", + "initialValue": "" + }, + { + "type": "any", + "value": "7", + "key": "num_later", + "initialValue": "" + }, + { + "type": "any", + "value": "2", + "key": "id", + "initialValue": "2" + }, + { + "type": "any", + "value": "13", + "key": "music_id", + "initialValue": "13" + }, + { + "type": "any", + "value": "undefined", + "key": "rewards_id", + "initialValue": "undefined" + }, + { + "type": "any", + "value": "undefined", + "key": "title_id", + "initialValue": "undefined" + }, + { + "type": "any", + "value": "SP000011", + "key": "products_id", + "initialValue": "SP000011" + }, + { + "type": "any", + "value": "DD000004", + "key": "order_id", + "initialValue": "DD000004" + }, + { + "type": "any", + "value": "JL000039", + "key": "transaction_id", + "initialValue": "JL000039" + }, + { + "type": "any", + "value": "CD000015", + "key": "list_id", + "initialValue": "CD000015" + }, + { + "type": "any", + "value": "SJ000008", + "key": "paper_id", + "initialValue": "SJ000008" + }, + { + "type": "any", + "value": "undefined", + "key": "paper_count", + "initialValue": "undefined" + }, + { + "type": "any", + "value": "DJ000014", + "key": "paper_record_id", + "initialValue": "DJ000014" + }, + { + "type": "any", + "value": "DT000016", + "key": "quiz_record_id", + "initialValue": "DT000016" + }, + { + "type": "any", + "value": "PLPT0000000033", + "key": "cert_id", + "isBindInitial": false, + "initialValue": "" + } + ] + }, + "type": "normal", + "parameter": { + "header": [], + "query": [], + "body": [], + "cookie": [] + } + }, + "globals": { + "baseUrl": "", + "baseUrls": {}, + "variable": { + "id": "663fac7c-6af9-4a1a-b9a9-90497177db8a", + "values": [] + }, + "parameter": { + "header": [], + "query": [], + "body": [], + "cookie": [] + } + }, + "isServerBuild": false, + "isTestFlowControl": false +} diff --git a/tests/cert_404.json b/tests/cert_404.json new file mode 100644 index 00000000..a4549593 --- /dev/null +++ b/tests/cert_404.json @@ -0,0 +1,596 @@ +{ + "apifoxCli": "1.1.0", + "item": [ + { + "item": [ + { + "id": "a47dc44e-a966-4dd2-84e6-0cb60a134905", + "name": "LG0101 账号密码登录(登录用户admin)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "login" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "method": "POST", + "baseUrl": "http://127.0.0.1:8000", + "body": { + "mode": "raw", + "raw": "{\r\n \"username\": \"admin\",\r\n \"password\": \"testtest123\"\r\n}", + "generateMode": "normal", + "type": "application/json" + }, + "type": "http" + }, + "response": [], + "event": [ + { + "listen": "test", + "script": { + "id": "postProcessors.0.extractor", + "type": "text/javascript", + "exec": [ + "", + " if (JSON.setEnableBigInt) {", + " JSON.setEnableBigInt(undefined);", + " }", + " ", + " try{", + " ", + " const expression = pm.variables.replaceIn(`$.token`);", + " const JSONPath = require('jsonpath-plus').JSONPath;", + " const jsonData = pm.response.json();", + " let value = JSONPath({", + " json: jsonData,", + " path: expression,", + " wrap: false", + " });", + "", + " ", + " if (false && undefined !== undefined) {", + " if (Array.isArray(value)) {", + " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", + " } else {", + " value = undefined;", + " }", + " }", + " ", + " ", + " switch (typeof value) {", + " case 'object':", + " value = JSON.stringify(value);", + " break;", + " default:", + " value = String(value);", + " break;", + " }", + " ", + " pm.environment.set(`token`, value);console.log('已设置环境变量【token】,值为 【' + value + '】')", + " } catch(e) {", + " e.message = '提取变量【token】出错: ' + e.message;", + " throw e;", + " }", + " ", + " " + ] + } + }, + { + "listen": "test", + "script": { + "id": "postProcessors.1.extractor", + "type": "text/javascript", + "exec": [ + "", + " if (JSON.setEnableBigInt) {", + " JSON.setEnableBigInt(undefined);", + " }", + " ", + " try{", + " ", + " const expression = pm.variables.replaceIn(`$.id`);", + " const JSONPath = require('jsonpath-plus').JSONPath;", + " const jsonData = pm.response.json();", + " let value = JSONPath({", + " json: jsonData,", + " path: expression,", + " wrap: false", + " });", + "", + " ", + " if (false && undefined !== undefined) {", + " if (Array.isArray(value)) {", + " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", + " } else {", + " value = undefined;", + " }", + " }", + " ", + " ", + " switch (typeof value) {", + " case 'object':", + " value = JSON.stringify(value);", + " break;", + " default:", + " value = String(value);", + " break;", + " }", + " ", + " pm.variables.set(`user_id`, value);console.log('已设置临时变量【user_id】,值为 【' + value + '】')", + " } catch(e) {", + " e.message = '提取变量【user_id】出错: ' + e.message;", + " throw e;", + " }", + " ", + " " + ] + } + } + ], + "responseDefinition": { + "id": 4183271, + "apiDetailId": 5318056, + "name": "成功", + "code": 200, + "contentType": "json", + "jsonSchema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "mock": { + "mock": "@string" + }, + "title": "权" + }, + "id": { + "type": "integer", + "title": "用户id" + } + }, + "required": [ + "token", + "id" + ] + }, + "defaultEnable": true, + "projectId": 0, + "ordering": 1, + "unpackerId": "", + "unpackerSetting": "", + "createdAt": "2021-07-29T14:43:37.000Z", + "updatedAt": "2021-08-12T16:27:18.000Z", + "deletedAt": null, + "folderId": 0, + "responseExamples": [], + "schemaDefinitions": {} + }, + "requestDefinition": { + "jsonSchema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "mock": { + "mock": "@cname" + }, + "title": "用户名" + }, + "password": { + "type": "string", + "mock": { + "mock": "@string('lower', 1, 3)" + }, + "title": "密码" + } + }, + "required": [ + "username", + "password" + ] + } + }, + "metaInfo": { + "httpApiId": 5318056, + "httpApiCaseId": 135413095, + "httpApiName": "LG0101 账号密码登录", + "httpApiPath": "/login", + "httpApiMethod": "post", + "httpApiCaseName": "登录用户admin", + "id": "7b9def38-bcc7-4782-8b15-3e5eaca483c0", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "c1a8beff-0b2e-4552-ba98-780985153fd7", + "name": "QZ0501 查询证书信息(QZ0501 查询证书信息)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs", + "1" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + } + ], + "method": "GET", + "baseUrl": "http://127.0.0.1:8000", + "body": {}, + "type": "http" + }, + "response": [], + "event": [], + "responseDefinition": { + "id": 69812670, + "createdAt": "2022-07-15T06:52:36.000Z", + "updatedAt": "2022-07-15T06:52:36.000Z", + "deletedAt": null, + "name": "不存在", + "apiDetailId": 0, + "projectId": 404238, + "code": 404, + "contentType": "json", + "ordering": 30, + "jsonSchema": {}, + "defaultEnable": false, + "folderId": 0, + "responseExamples": [], + "schemaDefinitions": {} + }, + "requestDefinition": { + "jsonSchema": {} + }, + "metaInfo": { + "httpApiId": 129604401, + "httpApiCaseId": 135413110, + "httpApiName": "QZ0501 查询证书信息", + "httpApiPath": "/certs/{id}", + "httpApiMethod": "get", + "httpApiCaseName": "QZ0501 查询证书信息", + "id": "d6616120-c6e3-47ba-b53e-a317765f4adf", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + }, + { + "id": "030c39fb-d3a9-4e98-a0dd-35ece468ee8b", + "name": "QZ0503 查询所有证书(QZ0503 查询所有证书)", + "request": { + "url": { + "protocol": "http", + "port": "8000", + "path": [ + "certs" + ], + "host": [ + "127", + "0", + "0", + "1" + ], + "query": [ + { + "disabled": false, + "key": "name", + "value": "" + }, + { + "disabled": false, + "key": "user", + "value": "1234" + } + ], + "variable": [] + }, + "header": [ + { + "key": "token", + "value": "{{token}}" + }, + { + "key": "User-Agent", + "value": "Apifox/1.0.0 (https://apifox.com)" + } + ], + "method": "GET", + "baseUrl": "http://127.0.0.1:8000", + "body": {}, + "type": "http" + }, + "response": [], + "event": [], + "responseDefinition": { + "id": 69812670, + "createdAt": "2022-07-15T06:52:36.000Z", + "updatedAt": "2022-07-15T06:52:36.000Z", + "deletedAt": null, + "name": "不存在", + "apiDetailId": 0, + "projectId": 404238, + "code": 404, + "contentType": "json", + "ordering": 30, + "jsonSchema": {}, + "defaultEnable": false, + "folderId": 0, + "responseExamples": [], + "schemaDefinitions": {} + }, + "requestDefinition": { + "jsonSchema": {} + }, + "metaInfo": { + "httpApiId": 129604857, + "httpApiCaseId": 135413108, + "httpApiName": "QZ0503 查询所有证书", + "httpApiPath": "/certs", + "httpApiMethod": "get", + "httpApiCaseName": "QZ0503 查询所有证书", + "id": "a2615834-7a46-4f5f-886a-37c8da5fdae2", + "type": "http" + }, + "type": "http", + "protocolProfileBehavior": { + "useWhatWGUrlParser": false, + "disableUrlEncoding": false + } + } + ], + "name": "QZ模块证书 404" + } + ], + "info": { + "name": "QZ模块证书 404" + }, + "dataSchemas": {}, + "mockRules": { + "rules": [], + "enableSystemRule": true + }, + "environment": { + "id": 510825, + "name": "测试环境", + "baseUrl": "http://127.0.0.1:8000", + "baseUrls": { + "default": "http://127.0.0.1:8000" + }, + "variable": { + "id": "0b16ee76-b2bf-438b-8c2d-e55689b37674", + "name": "测试环境", + "values": [ + { + "type": "any", + "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTcwNjA4NzI1NC45OTI0ODZ9.8xT_qRkxAcma58Ct5uqOI4pEQtZhtIUsrHVhwlquJRA", + "key": "token", + "isBindInitial": false, + "initialValue": "" + }, + { + "type": "any", + "value": "31", + "key": "quiz_id", + "initialValue": "" + }, + { + "type": "any", + "value": "16", + "key": "word_id_2", + "initialValue": "" + }, + { + "type": "any", + "value": "15", + "key": "word_id_1", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "token_2", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "word_id_3", + "initialValue": "" + }, + { + "type": "any", + "value": "2", + "key": "user_id", + "initialValue": "" + }, + { + "type": "any", + "value": "1", + "key": "article_id", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "comment_id_1", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "comment_id_2", + "initialValue": "" + }, + { + "type": "any", + "value": "", + "key": "like_num_2", + "initialValue": "" + }, + { + "type": "any", + "value": 6, + "key": "num_pre", + "initialValue": "" + }, + { + "type": "any", + "value": "7", + "key": "num_later", + "initialValue": "" + }, + { + "type": "any", + "value": "2", + "key": "id", + "initialValue": "2" + }, + { + "type": "any", + "value": "13", + "key": "music_id", + "initialValue": "13" + }, + { + "type": "any", + "value": "undefined", + "key": "rewards_id", + "initialValue": "undefined" + }, + { + "type": "any", + "value": "undefined", + "key": "title_id", + "initialValue": "undefined" + }, + { + "type": "any", + "value": "SP000011", + "key": "products_id", + "initialValue": "SP000011" + }, + { + "type": "any", + "value": "DD000004", + "key": "order_id", + "initialValue": "DD000004" + }, + { + "type": "any", + "value": "JL000039", + "key": "transaction_id", + "initialValue": "JL000039" + }, + { + "type": "any", + "value": "CD000015", + "key": "list_id", + "initialValue": "CD000015" + }, + { + "type": "any", + "value": "SJ000008", + "key": "paper_id", + "initialValue": "SJ000008" + }, + { + "type": "any", + "value": "undefined", + "key": "paper_count", + "initialValue": "undefined" + }, + { + "type": "any", + "value": "DJ000014", + "key": "paper_record_id", + "initialValue": "DJ000014" + }, + { + "type": "any", + "value": "DT000016", + "key": "quiz_record_id", + "initialValue": "DT000016" + }, + { + "type": "any", + "value": "PLPT0000000033", + "key": "cert_id", + "isBindInitial": false, + "initialValue": "" + } + ] + }, + "type": "normal", + "parameter": { + "header": [], + "query": [], + "body": [], + "cookie": [] + } + }, + "globals": { + "baseUrl": "", + "baseUrls": {}, + "variable": { + "id": "663fac7c-6af9-4a1a-b9a9-90497177db8a", + "values": [] + }, + "parameter": { + "header": [], + "query": [], + "body": [], + "cookie": [] + } + }, + "isServerBuild": false, + "isTestFlowControl": false +}