feat(接口自动化): 循环控制器
This commit is contained in:
parent
5ec2e11ca5
commit
3789365746
backend/src/main/java/io/metersphere/api/service
frontend/src/business/components/api/automation/scenario
|
@ -250,6 +250,7 @@ public class HistoricalDataUpgradeService {
|
||||||
if (!end.exists()) {
|
if (!end.exists()) {
|
||||||
end.mkdir();
|
end.mkdir();
|
||||||
}
|
}
|
||||||
|
if (filePath != null) {
|
||||||
for (String temp : filePath) {
|
for (String temp : filePath) {
|
||||||
//添加满足情况的条件
|
//添加满足情况的条件
|
||||||
if (new File(sourcePathDir + File.separator + temp).isFile()) {
|
if (new File(sourcePathDir + File.separator + temp).isFile()) {
|
||||||
|
@ -258,6 +259,7 @@ public class HistoricalDataUpgradeService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void createBodyFiles(String testId) {
|
private void createBodyFiles(String testId) {
|
||||||
String dir = BODY_FILE_DIR + "/" + testId;
|
String dir = BODY_FILE_DIR + "/" + testId;
|
||||||
|
|
|
@ -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