feat(接口定义、接口自动化): 接口定义和接口自动化左侧模块树创建超过8层会报错

--bug=1005342 --user=宋天阳 【接口测试】接口定义和接口自动化左侧模块树创建超过8层会报错
https://www.tapd.cn/55049933/s/1028599
This commit is contained in:
song-tianyang 2021-07-23 18:10:16 +08:00 committed by 刘瑞斌
parent 4fd31e7e74
commit 41b6cfc178
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
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);

View File

@ -221,7 +221,7 @@ public class ApiScenarioModuleService extends NodeTreeService<ApiScenarioModuleD
private void validateNode(ApiScenarioModule 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"));
}
checkApiScenarioModuleExist(node);