From e6a12a20147c4f901c6772fb9f6f8654e81cf22a Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 17 Apr 2023 18:20:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=8E=A5=E5=8F=A3=E6=96=AD?= =?UTF-8?q?=E8=A8=80=E4=B8=BA=E7=A9=BA=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025478 --user=王孝刚 【接口测试】导出api-再次导入到ms-断言数据全部缺失 https://www.tapd.cn/55049933/s/1363555 --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 505f277988..9af60b355e 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -1223,7 +1223,6 @@ public class ApiDefinitionService { createCase = true; } msHTTPSamplerProxy.setId(apiDefinition.getId()); - msHTTPSamplerProxy.setHashTree(new LinkedList<>()); apiDefinition.setRequest(JSONObject.toJSONString(msHTTPSamplerProxy)); return createCase; } @@ -1242,7 +1241,6 @@ public class ApiDefinitionService { createCase = true; } tcpSampler.setId(apiDefinition.getId()); - tcpSampler.setHashTree(new LinkedList<>()); apiDefinition.setRequest(JSONObject.toJSONString(tcpSampler)); return createCase; }