fix(接口自动化): 循环控制器处理
This commit is contained in:
parent
c951c38eab
commit
6e4e42812a
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,10 @@
|
|||
</el-col>
|
||||
<el-col :span="8">
|
||||
<span class="ms-span ms-radio">{{$t('loop.proceed')}}</span>
|
||||
<el-switch v-model="controller.countController.proceed"/>
|
||||
<el-tooltip class="item" effect="dark" content="默认为开启,当循环下只有一个请求时,可以开启/关闭;当循环下超过一个请求时,则只能开启。" placement="top">>
|
||||
<el-switch v-model="controller.countController.proceed"/>
|
||||
|
||||
</el-tooltip>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue