From 41b6cfc178e81940890e29d6fc03b7d4f5287554 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 23 Jul 2021 18:10:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E3=80=81=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E5=92=8C=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E5=B7=A6=E4=BE=A7=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=A0=91=E5=88=9B=E5=BB=BA=E8=B6=85=E8=BF=878=E5=B1=82?= =?UTF-8?q?=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1005342 --user=宋天阳 【接口测试】接口定义和接口自动化左侧模块树创建超过8层会报错 https://www.tapd.cn/55049933/s/1028599 --- .../main/java/io/metersphere/api/service/ApiModuleService.java | 2 +- .../io/metersphere/api/service/ApiScenarioModuleService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java b/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java index 1a98d601f8..17e5e20735 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java @@ -248,7 +248,7 @@ public class ApiModuleService extends NodeTreeService { private void validateNode(ApiModule node) { if (node.getLevel() > TestCaseConstants.MAX_NODE_DEPTH) { - throw new RuntimeException(Translator.get("test_case_node_level_tip") + MSException.throwException(Translator.get("test_case_node_level_tip") + TestCaseConstants.MAX_NODE_DEPTH + Translator.get("test_case_node_level")); } checkApiModuleExist(node); diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioModuleService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioModuleService.java index 30162252af..0cc6edab04 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioModuleService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioModuleService.java @@ -221,7 +221,7 @@ public class ApiScenarioModuleService extends NodeTreeService TestCaseConstants.MAX_NODE_DEPTH) { - throw new RuntimeException(Translator.get("test_case_node_level_tip") + MSException.throwException(Translator.get("test_case_node_level_tip") + TestCaseConstants.MAX_NODE_DEPTH + Translator.get("test_case_node_level")); } checkApiScenarioModuleExist(node);