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,11 +250,13 @@ public class HistoricalDataUpgradeService {
if (!end.exists()) {
end.mkdir();
}
for (String temp : filePath) {
//添加满足情况的条件
if (new File(sourcePathDir + File.separator + temp).isFile()) {
//为文件则进行拷贝
copyFile(sourcePathDir + File.separator + temp, newPathDir + File.separator + temp);
if (filePath != null) {
for (String temp : filePath) {
//添加满足情况的条件
if (new File(sourcePathDir + File.separator + temp).isFile()) {
//为文件则进行拷贝
copyFile(sourcePathDir + File.separator + temp, newPathDir + File.separator + temp);
}
}
}
}

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"),