feat(接口定义、接口自动化): 接口定义和接口自动化左侧模块树创建超过8层会报错
--bug=1005342 --user=宋天阳 【接口测试】接口定义和接口自动化左侧模块树创建超过8层会报错 https://www.tapd.cn/55049933/s/1028599
This commit is contained in:
parent
4fd31e7e74
commit
41b6cfc178
|
@ -248,7 +248,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
|
||||||
|
|
||||||
private void validateNode(ApiModule node) {
|
private void validateNode(ApiModule node) {
|
||||||
if (node.getLevel() > TestCaseConstants.MAX_NODE_DEPTH) {
|
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"));
|
+ TestCaseConstants.MAX_NODE_DEPTH + Translator.get("test_case_node_level"));
|
||||||
}
|
}
|
||||||
checkApiModuleExist(node);
|
checkApiModuleExist(node);
|
||||||
|
|
|
@ -221,7 +221,7 @@ public class ApiScenarioModuleService extends NodeTreeService<ApiScenarioModuleD
|
||||||
|
|
||||||
private void validateNode(ApiScenarioModule node) {
|
private void validateNode(ApiScenarioModule node) {
|
||||||
if (node.getLevel() > TestCaseConstants.MAX_NODE_DEPTH) {
|
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"));
|
+ TestCaseConstants.MAX_NODE_DEPTH + Translator.get("test_case_node_level"));
|
||||||
}
|
}
|
||||||
checkApiScenarioModuleExist(node);
|
checkApiScenarioModuleExist(node);
|
||||||
|
|
Loading…
Reference in New Issue