feat(接口自动化): 循环控制器

This commit is contained in:
fit2-zhao 2021-01-06 14:49:33 +08:00
parent 5ec2e11ca5
commit 3789365746
2 changed files with 17 additions and 5 deletions

View File

@ -250,6 +250,7 @@ public class HistoricalDataUpgradeService {
if (!end.exists()) {
end.mkdir();
}
if (filePath != null) {
for (String temp : filePath) {
//添加满足情况的条件
if (new File(sourcePathDir + File.separator + temp).isFile()) {
@ -258,6 +259,7 @@ public class HistoricalDataUpgradeService {
}
}
}
}
private void createBodyFiles(String testId) {
String dir = BODY_FILE_DIR + "/" + testId;

View File

@ -387,6 +387,16 @@
this.addComponent('IfController')
}
},
{
title: this.$t('api_test.automation.if_controller'),
show: this.showButton("LoopController"),
titleColor: "#02A7F0",
titleBgColor: "#F4F4F5",
icon: "alt_route",
click: () => {
this.addComponent('IfController')
}
},
{
title: this.$t('api_test.automation.wait_controller'),
show: this.showButton("ConstantTimer"),