Merge remote-tracking branch 'origin/v1.7' into v1.7

This commit is contained in:
wenyann 2021-01-29 11:54:27 +08:00
commit f90778db22
1 changed files with 13 additions and 17 deletions

View File

@ -256,9 +256,7 @@ public abstract class MsTestElement {
return getRootParent(element.getParent()); return getRootParent(element.getParent());
} }
protected String getParentName(MsTestElement element, ParameterConfig config) { protected String getParentName(MsTestElement parent, ParameterConfig config) {
if (element != null) {
MsTestElement parent = this.getRootParent(element);
if (parent != null) { if (parent != null) {
if (MsTestElementConstants.LoopController.name().equals(parent.getType())) { if (MsTestElementConstants.LoopController.name().equals(parent.getType())) {
MsLoopController loopController = (MsLoopController) parent; MsLoopController loopController = (MsLoopController) parent;
@ -273,8 +271,6 @@ public abstract class MsTestElement {
} }
} }
return parent.getName(); return parent.getName();
}
return element.getName();
} else if (config != null && StringUtils.isNotEmpty(config.getStep())) { } else if (config != null && StringUtils.isNotEmpty(config.getStep())) {
if (MsTestElementConstants.SCENARIO.name().equals(config.getStepType())) { if (MsTestElementConstants.SCENARIO.name().equals(config.getStepType())) {
return config.getStep(); return config.getStep();