加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
附件 7 MeterSphere_Scenario_Halo_Edu.json 26.77 KB
一键复制 编辑 原始数据 按行查看 历史
xueqidove 提交于 2023-03-30 06:05 . 标题修改
{"projectId":"edcff357-21c0-4b74-8723-4092963a7cf5","version":"v1.20.19-lts-a80199cf","data":[{"id":"64d44d54-9edf-435e-be60-4280953d38d9","projectId":"edcff357-21c0-4b74-8723-4092963a7cf5","tags":"","userId":"d8681488-b075-471a-bf06-7f8f9599a011","apiScenarioModuleId":"e8dcc583-0a02-4c05-9de9-c6927b6a9ec7","modulePath":"/halo edu/未规划场景","name":"Halo 核心流程","level":"P0","status":"Underway","principal":"d8681488-b075-471a-bf06-7f8f9599a011","stepTotal":7,"schedule":null,"createTime":1677055343455,"updateTime":1677055744579,"passRate":"100%","lastResult":"Success","reportId":"b4e911ce","num":100002,"originalState":null,"customNum":"100002","createUser":"d8681488-b075-471a-bf06-7f8f9599a011","version":9,"deleteTime":null,"deleteUserId":null,"executeTimes":37,"order":15000,"environmentType":"JSON","environmentGroupId":null,"versionId":"6a0eeefd-0d32-480e-bbbb-af309ee46983","refId":"64d44d54-9edf-435e-be60-4280953d38d9","latest":true,"scenarioDefinition":"{\"headers\":[{\"valid\":false,\"file\":false,\"enable\":true,\"name\":\"\",\"urlEncode\":false,\"value\":\"\",\"required\":true}],\"variables\":[{\"startNumber\":0,\"counterValid\":false,\"increment\":0,\"constantValid\":true,\"endNumber\":0,\"type\":\"CONSTANT\",\"quotedData\":false,\"random\":false,\"cSVValid\":false,\"delimiter\":\",\",\"name\":\"postName\",\"files\":[],\"id\":\"5bcf94c4-3740-596c-1a45-cae364991cb6\",\"listValid\":false,\"value\":\"MS-TEST-POST-${__Random(1,1000)}\"},{\"startNumber\":0,\"counterValid\":false,\"increment\":0,\"constantValid\":true,\"endNumber\":0,\"type\":\"CONSTANT\",\"quotedData\":false,\"random\":false,\"cSVValid\":false,\"delimiter\":\",\",\"name\":\"postContent\",\"files\":[],\"id\":\"a5d5789a-6e6f-6426-9df2-57841480fd3a\",\"listValid\":false,\"value\":\"${__Mock(@cparagraph)}\"}],\"mockEnvironment\":false,\"active\":false,\"environmentMap\":{\"edcff357-21c0-4b74-8723-4092963a7cf5\":\"ef1ac95c-0932-42c1-a324-a6b9fdc2d126\"},\"type\":\"scenario\",\"environmentEnable\":false,\"referenced\":\"Created\",\"enable\":true,\"name\":\"Halo 核心流程\",\"enableCookieShare\":true,\"hashTree\":[{\"resourceId\":\"92a141cc-1f71-4218-9c37-9bcc81a2bbb7\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":true,\"xml\":false,\"binary\":[],\"json\":false,\"kvs\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"username\",\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":true,\"value\":\"${username}\",\"required\":false},{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"password\",\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":true,\"value\":\"${password}\",\"required\":false},{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"_csrf\",\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":true,\"value\":\"${csrf}\",\"required\":false},{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":true,\"required\":false}],\"kV\":true,\"oldKV\":false,\"type\":\"WWW_FORM\"},\"path\":\"/login\",\"protocol\":\"HTTP\",\"environmentId\":\"6b488207-381d-4e75-924d-a7043e747412\",\"enable\":true,\"followRedirects\":true,\"useEnvironment\":\"6b488207-381d-4e75-924d-a7043e747412\",\"connectTimeout\":\"60000\",\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"2909b38d-dab4-44ca-b804-07ab10ff5a0b\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"ea6931eb-c9f1-1420-8e7f-5f9b81a28a6b\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"b5a16589-636e-4ac0-904a-1c77dad0cb46\",\"responseTimeout\":\"60000\",\"headers\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"Content-Type\",\"urlEncode\":false,\"value\":\"application/x-www-form-urlencoded\",\"required\":true},{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"Cookie\",\"urlEncode\":false,\"value\":\"XSRF-TOKEN=${csrf}\",\"required\":true},{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"Accept\",\"urlEncode\":false,\"value\":\"application/json\",\"required\":true},{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"rest\":[],\"mockEnvironment\":false,\"method\":\"POST\",\"active\":false,\"index\":1,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"登录\",\"isRefEnvironment\":true,\"arguments\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false},{\"resourceId\":\"b951f9ea-2bc0-47e4-95fc-ae26972a0582\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":true,\"jsonSchema\":{\"hidden\":true,\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"title\":\"The Root Schema\",\"properties\":{\"post\":{\"hidden\":true,\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"title\":\"The post Schema\",\"properties\":{\"metadata\":{\"hidden\":true,\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"title\":\"The metadata Schema\",\"properties\":{\"name\":{\"mock\":{\"mock\":\"${postName}\"},\"type\":\"string\"},\"version\":{\"hidden\":true,\"mock\":{\"mock\":\"1\"},\"type\":\"integer\",\"title\":\"The version Schema\",\"$id\":\"#/properties/post/properties/metadata/properties/version\"}},\"$id\":\"#/properties/post/properties/metadata\"},\"apiVersion\":{\"hidden\":true,\"mock\":{\"mock\":\"content.halo.run/v1alpha1\"},\"type\":\"string\",\"title\":\"The apiVersion Schema\",\"$id\":\"#/properties/post/properties/apiVersion\"},\"kind\":{\"hidden\":true,\"mock\":{\"mock\":\"Post\"},\"type\":\"string\",\"title\":\"The kind Schema\",\"$id\":\"#/properties/post/properties/kind\"},\"spec\":{\"hidden\":true,\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"title\":\"The spec Schema\",\"properties\":{\"pinned\":{\"hidden\":true,\"mock\":{\"mock\":\"false\"},\"type\":\"boolean\",\"title\":\"The pinned Schema\",\"$id\":\"#/properties/post/properties/spec/properties/pinned\"},\"visible\":{\"hidden\":true,\"mock\":{\"mock\":\"PUBLIC\"},\"type\":\"string\",\"title\":\"The visible Schema\",\"$id\":\"#/properties/post/properties/spec/properties/visible\"},\"deleted\":{\"hidden\":true,\"mock\":{\"mock\":\"false\"},\"type\":\"boolean\",\"title\":\"The deleted Schema\",\"$id\":\"#/properties/post/properties/spec/properties/deleted\"},\"publish\":{\"hidden\":true,\"mock\":{\"mock\":\"false\"},\"type\":\"boolean\",\"title\":\"The publish Schema\",\"$id\":\"#/properties/post/properties/spec/properties/publish\"},\"allowComment\":{\"hidden\":true,\"mock\":{\"mock\":\"true\"},\"type\":\"boolean\",\"title\":\"The allowComment Schema\",\"$id\":\"#/properties/post/properties/spec/properties/allowComment\"},\"title\":{\"hidden\":true,\"minLength\":1,\"mock\":{\"mock\":\"${postName}\"},\"type\":\"string\",\"title\":\"The title Schema\",\"$id\":\"#/properties/post/properties/spec/properties/title\"},\"priority\":{\"hidden\":true,\"mock\":{\"mock\":\"0\"},\"type\":\"integer\",\"title\":\"The priority Schema\",\"$id\":\"#/properties/post/properties/spec/properties/priority\"},\"excerpt\":{\"hidden\":true,\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"title\":\"The excerpt Schema\",\"properties\":{\"autoGenerate\":{\"hidden\":true,\"mock\":{\"mock\":true},\"type\":\"boolean\",\"title\":\"The autoGenerate Schema\",\"$id\":\"#/properties/post/properties/spec/properties/excerpt/properties/autoGenerate\"}},\"$id\":\"#/properties/post/properties/spec/properties/excerpt\"},\"slug\":{\"hidden\":true,\"minLength\":1,\"mock\":{\"mock\":\"${postName}\"},\"type\":\"string\",\"title\":\"The slug Schema\",\"$id\":\"#/properties/post/properties/spec/properties/slug\"}},\"$id\":\"#/properties/post/properties/spec\"}},\"$id\":\"#/properties/post\"},\"content\":{\"hidden\":true,\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"title\":\"The content Schema\",\"properties\":{\"rawType\":{\"hidden\":true,\"mock\":{\"mock\":\"HTML\"},\"type\":\"string\",\"title\":\"The rawType Schema\",\"$id\":\"#/properties/content/properties/rawType\"},\"raw\":{\"hidden\":true,\"mock\":{\"mock\":\"${postContent}\"},\"type\":\"string\",\"title\":\"The raw Schema\",\"$id\":\"#/properties/content/properties/raw\"},\"content\":{\"hidden\":true,\"mock\":{\"mock\":\"${postContent}\"},\"type\":\"string\",\"title\":\"The content Schema\",\"$id\":\"#/properties/content/properties/content\"}},\"$id\":\"#/properties/content\"}},\"$id\":\"http://example.com/root.json\"},\"xml\":false,\"binary\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"format\":\"JSON-SCHEMA\",\"json\":true,\"kvs\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"urlEncode\":false,\"required\":true}],\"raw\":\"{\\n \\\"post\\\": {\\n \\\"metadata\\\": {\\n \\\"name\\\": \\\"${postName}\\\",\\n \\\"version\\\": 1\\n },\\n \\\"apiVersion\\\": \\\"content.halo.run/v1alpha1\\\",\\n \\\"kind\\\": \\\"Post\\\",\\n \\\"spec\\\": {\\n \\\"pinned\\\": false,\\n \\\"visible\\\": \\\"PUBLIC\\\",\\n \\\"deleted\\\": false,\\n \\\"publish\\\": false,\\n \\\"allowComment\\\": true,\\n \\\"title\\\": \\\"${postName}\\\",\\n \\\"priority\\\": 0,\\n \\\"excerpt\\\": {\\n \\\"autoGenerate\\\": true\\n },\\n \\\"slug\\\": \\\"${postName}\\\"\\n }\\n },\\n \\\"content\\\": {\\n \\\"rawType\\\": \\\"HTML\\\",\\n \\\"raw\\\": \\\"${postContent}\\\",\\n \\\"content\\\": \\\"${postContent}\\\"\\n }\\n}\",\"kV\":false,\"oldKV\":false,\"type\":\"JSON\"},\"path\":\"/apis/api.console.halo.run/v1alpha1/posts\",\"protocol\":\"HTTP\",\"environmentId\":\"6b488207-381d-4e75-924d-a7043e747412\",\"enable\":true,\"followRedirects\":true,\"useEnvironment\":\"6b488207-381d-4e75-924d-a7043e747412\",\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"fc0c6afe-faed-42ec-b388-502291749e53\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[{\"valid\":true,\"expect\":\"DRAFT\",\"expression\":\"$.status.phase\",\"enable\":true,\"description\":\"$.status.phase expect: DRAFT\",\"type\":\"JSON\",\"option\":\"REGEX\"},{\"valid\":true,\"expect\":\"${postName}\",\"expression\":\"$.spec.title\",\"enable\":true,\"description\":\"$.spec.title expect: ${postName}\",\"type\":\"JSON\",\"option\":\"REGEX\"},{\"valid\":true,\"expect\":\"${postName}\",\"expression\":\"$.spec.slug\",\"enable\":true,\"description\":\"$.spec.slug expect: ${postName}\",\"type\":\"JSON\",\"option\":\"REGEX\"},{\"valid\":true,\"expect\":\"${username}\",\"expression\":\"$.spec.owner\",\"enable\":true,\"description\":\"$.spec.owner expect: ${username}\",\"type\":\"JSON\",\"option\":\"REGEX\"}],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"22397024-c4a5-1631-05fc-5169f52311b1\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"ee631db6-60f8-4632-8bdc-a60971128c54\",\"headers\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"Content-Type\",\"description\":\"\",\"contentType\":\"\",\"urlEncode\":false,\"value\":\"application/json\",\"required\":true},{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"X-XSRF-TOKEN\",\"urlEncode\":false,\"value\":\"${csrf}\",\"required\":true},{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"rest\":[],\"mockEnvironment\":false,\"method\":\"POST\",\"active\":false,\"index\":2,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"创建文章\",\"isRefEnvironment\":true,\"arguments\":[],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false},{\"resourceId\":\"2074a59d-684b-42c6-aaae-eabf138fe741\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":false,\"xml\":false,\"binary\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"json\":false,\"kvs\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"urlEncode\":false,\"required\":true}],\"kV\":true,\"oldKV\":false,\"type\":\"Form Data\"},\"path\":\"/apis/api.console.halo.run/v1alpha1/posts/{name}/publish\",\"protocol\":\"HTTP\",\"enable\":true,\"followRedirects\":true,\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"61b41368-05cb-41ab-9878-c34c0395aba3\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[{\"valid\":true,\"expect\":\"PUBLISHED\",\"expression\":\"$.status.phase\",\"enable\":true,\"description\":\"$.status.phase expect: PUBLISHED\",\"type\":\"JSON\",\"option\":\"REGEX\"},{\"valid\":true,\"expect\":\"true\",\"expression\":\"$.spec.publish\",\"enable\":true,\"description\":\"$.spec.publish expect: true\",\"type\":\"JSON\",\"option\":\"REGEX\"}],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"a7b14d78-29ef-f11d-91ab-8bc83abbccfb\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"11a70d7c-6a42-43b4-9776-632adaadd04c\",\"headers\":[],\"rest\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"name\",\"description\":\"\",\"urlEncode\":false,\"value\":\"${postName}\",\"required\":true},{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"mockEnvironment\":false,\"method\":\"PUT\",\"active\":false,\"index\":3,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"发布文章\",\"isRefEnvironment\":true,\"arguments\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false},{\"resourceId\":\"bd86da47-e2b1-4aa6-a332-ac5e7be15acb\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":false,\"jsonSchema\":{\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"properties\":{\"metadata\":{\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Metadata name\",\"mock\":{\"mock\":\"${postName}-comment\"},\"type\":\"string\"},\"version\":{\"mock\":{\"mock\":\"1\"},\"type\":\"integer\"}},\"required\":[\"name\"]},\"apiVersion\":{\"mock\":{\"mock\":\"content.halo.run/v1alpha1\"},\"type\":\"string\"},\"kind\":{\"mock\":{\"mock\":\"Comment\"},\"type\":\"string\"},\"spec\":{\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"properties\":{\"owner\":{\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"properties\":{\"displayName\":{\"mock\":{\"mock\":\"Demo\"},\"type\":\"string\"},\"kind\":{\"mock\":{\"mock\":\"User\"},\"type\":\"string\"},\"name\":{\"mock\":{\"mock\":\"demo\"},\"type\":\"string\"}}},\"approved\":{\"defaultValue\":false,\"mock\":{\"mock\":\"true\"},\"type\":\"boolean\"},\"top\":{\"defaultValue\":false,\"mock\":{\"mock\":\"false\"},\"type\":\"boolean\"},\"hidden\":{\"defaultValue\":false,\"mock\":{\"mock\":\"false\"},\"type\":\"boolean\"},\"raw\":{\"minLength\":1,\"mock\":{\"mock\":\"MS测试评论\"},\"type\":\"string\"},\"subjectRef\":{\"mock\":{\"mock\":\"\"},\"type\":\"object\",\"properties\":{\"kind\":{\"description\":\"Extension kind\",\"mock\":{\"mock\":\"Post\"},\"type\":\"string\"},\"name\":{\"description\":\"Extension name. This field is mandatory\",\"mock\":{\"mock\":\"${postName}\"},\"type\":\"string\"},\"group\":{\"description\":\"Extension group\",\"mock\":{\"mock\":\"content.halo.run\"},\"type\":\"string\"}},\"required\":[\"name\"]},\"allowNotification\":{\"defaultValue\":true,\"mock\":{\"mock\":\"false\"},\"type\":\"boolean\"},\"priority\":{\"defaultValue\":0,\"mock\":{\"mock\":\"0\"},\"type\":\"integer\"},\"content\":{\"minLength\":1,\"mock\":{\"mock\":\"MS测试评论\"},\"type\":\"string\"}},\"required\":[\"allowNotification\",\"approved\",\"content\",\"hidden\",\"priority\",\"raw\",\"subjectRef\",\"top\"]}},\"required\":[\"apiVersion\",\"kind\",\"metadata\",\"spec\"]},\"xml\":false,\"binary\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"format\":\"JSON-SCHEMA\",\"json\":true,\"kvs\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"urlEncode\":false,\"required\":true}],\"kV\":false,\"oldKV\":false,\"type\":\"JSON\"},\"path\":\"/apis/content.halo.run/v1alpha1/comments\",\"protocol\":\"HTTP\",\"enable\":true,\"followRedirects\":true,\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"43966810-a7f5-4f4a-a1db-9b8ddf287324\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"4e18c5e3-2961-d147-156b-fdd5a5c136e5\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"285b1555-2a9c-4a5d-83ca-17d4ea954bb4\",\"headers\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"Content-Type\",\"description\":\"\",\"contentType\":\"\",\"urlEncode\":false,\"value\":\"application/json\",\"required\":true}],\"rest\":[],\"mockEnvironment\":false,\"method\":\"POST\",\"active\":false,\"index\":4,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"添加评论\",\"isRefEnvironment\":true,\"arguments\":[],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false},{\"resourceId\":\"67c64b65-f9fd-4675-a1c2-932f12762358\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":false,\"xml\":false,\"binary\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"json\":false,\"kvs\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"urlEncode\":false,\"required\":true}],\"kV\":true,\"oldKV\":false,\"type\":\"Form Data\"},\"path\":\"/apis/content.halo.run/v1alpha1/comments/{name}\",\"protocol\":\"HTTP\",\"enable\":true,\"followRedirects\":true,\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"26c90da4-2a2a-4643-87c1-cb6769ae2978\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"551ed436-cb9b-ffac-d517-4ce28b587b4b\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"2ba08522-8fd7-4283-ab4f-f55328c79809\",\"headers\":[],\"rest\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"name\",\"description\":\"Name of comment\",\"urlEncode\":false,\"value\":\"${postName}-comment\",\"required\":true},{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"mockEnvironment\":false,\"method\":\"DELETE\",\"active\":false,\"index\":5,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"删除评论\",\"isRefEnvironment\":true,\"arguments\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false},{\"resourceId\":\"2f25f214-6c91-45f8-8c97-cbd094a7febc\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":false,\"xml\":false,\"binary\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"json\":false,\"kvs\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"kV\":false,\"oldKV\":false},\"path\":\"/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle\",\"protocol\":\"HTTP\",\"enable\":true,\"followRedirects\":true,\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"6f0483ca-05ad-43bf-b5e9-5f46f0d45ed7\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[{\"valid\":true,\"expect\":\"true\",\"expression\":\"$.spec.deleted\",\"enable\":true,\"description\":\"$.spec.deleted expect: true\",\"type\":\"JSON\",\"option\":\"REGEX\"}],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"277ab853-3844-874e-19b9-65062d354a48\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"6a672796-ffcb-46ef-aff8-321d024b6783\",\"headers\":[],\"rest\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"name\",\"description\":\"\",\"urlEncode\":false,\"value\":\"${postName}\",\"required\":true},{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"mockEnvironment\":false,\"method\":\"PUT\",\"active\":false,\"index\":6,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"文章移入回收站\",\"isRefEnvironment\":true,\"arguments\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false},{\"resourceId\":\"98149e79-bfad-4aaa-b637-74677b5cf2db\",\"refType\":\"API\",\"type\":\"HTTPSamplerProxy\",\"body\":{\"valid\":false,\"xml\":false,\"binary\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"json\":false,\"kvs\":[{\"valid\":false,\"file\":false,\"enable\":true,\"urlEncode\":false,\"required\":true}],\"kV\":false,\"oldKV\":false},\"path\":\"/apis/content.halo.run/v1alpha1/posts/{name}\",\"protocol\":\"HTTP\",\"enable\":true,\"followRedirects\":true,\"hashTree\":[{\"jsr223\":[],\"resourceId\":\"61ab7608-34b4-476d-8c52-5dda1ee3778b\",\"mockEnvironment\":false,\"document\":{\"data\":{\"xml\":[],\"json\":[],\"xmlFollowAPI\":\"false\",\"jsonFollowAPI\":\"false\"},\"enable\":true,\"type\":\"JSON\"},\"xpath2\":[],\"active\":false,\"index\":1,\"jsonPath\":[],\"type\":\"Assertions\",\"duration\":{\"valid\":false,\"enable\":true,\"type\":\"Duration\",\"value\":0},\"regex\":[],\"scenarioAss\":false,\"enable\":true,\"hashTree\":[],\"id\":\"0724c5d6-7d52-1a19-dc44-6f76ca447b04\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.assertions.MsAssertions\"}],\"id\":\"f03e7fc0-fa8f-4508-9739-a00a04f3c18b\",\"headers\":[],\"rest\":[{\"valid\":true,\"file\":false,\"enable\":true,\"name\":\"name\",\"description\":\"Name of post\",\"urlEncode\":false,\"value\":\"${postName}\",\"required\":true},{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"mockEnvironment\":false,\"method\":\"DELETE\",\"active\":false,\"index\":7,\"url\":\"\",\"customizeReq\":false,\"referenced\":\"Copy\",\"domain\":\"http://halo.edu.metersphere.com\",\"name\":\"彻底删除文章\",\"isRefEnvironment\":true,\"arguments\":[{\"valid\":false,\"file\":false,\"enable\":true,\"type\":\"text\",\"contentType\":\"text/plain\",\"urlEncode\":false,\"required\":false}],\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.sampler.MsHTTPSamplerProxy\",\"doMultipartPost\":false}],\"id\":\"64d44d54-9edf-435e-be60-4280953d38d9\",\"projectId\":\"edcff357-21c0-4b74-8723-4092963a7cf5\",\"clazzName\":\"io.metersphere.api.dto.definition.request.MsScenario\",\"onSampleError\":true}","description":null,"environmentJson":"{\"edcff357-21c0-4b74-8723-4092963a7cf5\":\"ef1ac95c-0932-42c1-a324-a6b9fdc2d126\"}"}],"nodeTree":[{"id":"ad9bea92-c36a-4d67-947e-798ae11f4670","projectId":"edcff357-21c0-4b74-8723-4092963a7cf5","name":"未规划场景","parentId":null,"level":1,"createTime":1659592795502,"updateTime":1659592795502,"pos":1,"label":"未规划场景","children":null,"caseNum":0,"path":"/未规划场景"},{"id":"54370ccf-0010-41e6-9825-d7e8def7079d","projectId":"edcff357-21c0-4b74-8723-4092963a7cf5","name":"文章管理","parentId":null,"level":1,"createTime":1659592795660,"updateTime":1659592795660,"pos":65537,"label":"文章管理","children":null,"caseNum":1,"path":"/文章管理"},{"id":"3f83c79b-ce6e-48e3-87f7-fdb684df9974","projectId":"edcff357-21c0-4b74-8723-4092963a7cf5","name":"halo edu","parentId":null,"level":1,"createTime":1677055323592,"updateTime":1677055323592,"pos":131073,"label":"halo edu","children":[{"id":"e8dcc583-0a02-4c05-9de9-c6927b6a9ec7","projectId":"edcff357-21c0-4b74-8723-4092963a7cf5","name":"未规划场景","parentId":"3f83c79b-ce6e-48e3-87f7-fdb684df9974","level":2,"createTime":1677055343432,"updateTime":1677055343432,"pos":65536,"label":"未规划场景","children":null,"caseNum":1,"path":"/halo edu/未规划场景"}],"caseNum":1,"path":"/halo edu"}]}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化