From caf13cfb46ce9257b8cc9449ea1208759037ef6b Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Thu, 24 Oct 2024 18:54:03 +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=9C=BA=E6=99=AF=E5=AF=BC=E5=85=A5jmx?= =?UTF-8?q?=E6=97=B6=E6=8F=90=E5=8F=96=E5=8F=82=E6=95=B0=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=9C=AA=E7=BB=99=E9=BB=98=E8=AE=A4=E5=80=BC=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048030 --user=宋天阳 【场景导入】-使用jmx文件导入场景,请求的json提取器导入后,提取的参数类型为空 https://www.tapd.cn/55049933/s/1597746 --- .../api/parser/ms/http/post/JSONPostProcessorConverter.java | 2 +- .../io/metersphere/plan/service/TestPlanApiCaseService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java index 7a926101be..457d5e9136 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java @@ -16,7 +16,7 @@ public class JSONPostProcessorConverter extends AbstractMsElementConverter caseEnv = environmentMapper.selectByExample(environmentExample); Map caseEnvMap = caseEnv.stream().collect(Collectors.toMap(Environment::getId, Environment::getName)); + apiCaseList.forEach(item -> { item.setProjectName(projectMap.get(item.getProjectId())); item.setCreateUserName(userMap.get(item.getCreateUser()));