fix(接口自动化): 循环控制器处理

This commit is contained in:
fit2-zhao 2021-01-18 18:26:45 +08:00
parent c951c38eab
commit 6e4e42812a
3 changed files with 6 additions and 3 deletions

View File

@ -61,7 +61,7 @@ public class MsLoopController extends MsTestElement {
loopController.setName(this.getLabel());
loopController.setProperty(TestElement.TEST_CLASS, LoopController.class.getName());
loopController.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("LoopControlPanel"));
loopController.setContinueForever(countController.isProceed());
// loopController.setContinueForever(countController.isProceed());
loopController.setLoops(countController.getLoops());
return loopController;
}

View File

@ -30,7 +30,10 @@
</el-col>
<el-col :span="8">
<span class="ms-span ms-radio">{{$t('loop.proceed')}}</span>
<el-tooltip class="item" effect="dark" content="默认为开启,当循环下只有一个请求时,可以开启/关闭;当循环下超过一个请求时,则只能开启。" placement="top">>
<el-switch v-model="controller.countController.proceed"/>
</el-tooltip>
</el-col>
</el-row>
</div>

View File

@ -1024,7 +1024,7 @@ export class LoopController extends Controller {
this.type = "LoopController";
this.active = false;
this.loopType = "LOOP_COUNT";
this.countController = {loops: 0, interval: 0, proceed: false};
this.countController = {loops: 0, interval: 0, proceed: true};
this.forEachController = {inputVal: "", returnVal: "", interval: 0};
this.whileController = {variable: "", operator: "", value: "", timeout: 0};
this.hashTree = [];