fix(接口自动化): 修复次数循环嵌套执行问题

This commit is contained in:
fit2-zhao 2021-06-30 19:09:04 +08:00 committed by fit2-zhao
parent d5750319f3
commit 3823d8ea96
1 changed files with 3 additions and 1 deletions

View File

@ -106,7 +106,9 @@ public class MsLoopController extends MsTestElement {
loopController.setProperty(TestElement.TEST_CLASS, LoopController.class.getName());
loopController.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("LoopControlPanel"));
loopController.setLoops(countController.getLoops());
loopController.setContinueForever(false);
if (countController.getLoops() > 0) {
loopController.setContinueForever(true);
}
return loopController;
}