Merge remote-tracking branch 'origin/v1.7' into v1.7
This commit is contained in:
commit
f90778db22
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue