fix(接口自动化): 修复次数循环嵌套执行问题
This commit is contained in:
parent
d5750319f3
commit
3823d8ea96
|
@ -106,7 +106,9 @@ public class MsLoopController extends MsTestElement {
|
||||||
loopController.setProperty(TestElement.TEST_CLASS, LoopController.class.getName());
|
loopController.setProperty(TestElement.TEST_CLASS, LoopController.class.getName());
|
||||||
loopController.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("LoopControlPanel"));
|
loopController.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("LoopControlPanel"));
|
||||||
loopController.setLoops(countController.getLoops());
|
loopController.setLoops(countController.getLoops());
|
||||||
loopController.setContinueForever(false);
|
if (countController.getLoops() > 0) {
|
||||||
|
loopController.setContinueForever(true);
|
||||||
|
}
|
||||||
return loopController;
|
return loopController;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue