From 7a1f43e5d6ecbf04e1af8995c79ed50689a4100c Mon Sep 17 00:00:00 2001 From: jianxing Date: Mon, 24 Jul 2023 14:38:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=85=B3=E8=81=94=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E7=94=A8=E4=BE=8B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027977 --user=陈建星 【测试跟踪】新建测试计划-关联接口场景-选择所有数据-场景未添加到测试计划内 https://www.tapd.cn/55049933/s/1396413 --- .../io/metersphere/service/plan/TestPlanScenarioCaseService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java index e87b11d604..64d4e84ec8 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java @@ -248,6 +248,7 @@ public class TestPlanScenarioCaseService { testPlanApiScenario.setTestPlanId(request.getPlanId()); testPlanApiScenario.setCreateTime(System.currentTimeMillis()); testPlanApiScenario.setUpdateTime(System.currentTimeMillis()); + newEnvMap.remove(null); String environmentJson = JSON.toJSONString(newEnvMap); if (StringUtils.equals(envType, EnvironmentType.JSON.name())) { testPlanApiScenario.setEnvironment(environmentJson);