feat(接口自动化): 循环控制器
This commit is contained in:
parent
5ec2e11ca5
commit
3789365746
|
@ -250,11 +250,13 @@ public class HistoricalDataUpgradeService {
|
||||||
if (!end.exists()) {
|
if (!end.exists()) {
|
||||||
end.mkdir();
|
end.mkdir();
|
||||||
}
|
}
|
||||||
for (String temp : filePath) {
|
if (filePath != null) {
|
||||||
//添加满足情况的条件
|
for (String temp : filePath) {
|
||||||
if (new File(sourcePathDir + File.separator + temp).isFile()) {
|
//添加满足情况的条件
|
||||||
//为文件则进行拷贝
|
if (new File(sourcePathDir + File.separator + temp).isFile()) {
|
||||||
copyFile(sourcePathDir + File.separator + temp, newPathDir + File.separator + temp);
|
//为文件则进行拷贝
|
||||||
|
copyFile(sourcePathDir + File.separator + temp, newPathDir + File.separator + temp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -387,6 +387,16 @@
|
||||||
this.addComponent('IfController')
|
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'),
|
title: this.$t('api_test.automation.wait_controller'),
|
||||||
show: this.showButton("ConstantTimer"),
|
show: this.showButton("ConstantTimer"),
|
||||||
|
|
Loading…
Reference in New Issue