diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/task/service/TaskService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/task/service/TaskService.java index 4ce3a2c5b3..83e0536a43 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/task/service/TaskService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/task/service/TaskService.java @@ -37,6 +37,8 @@ public class TaskService { private static final String SCENARIO = "SCENARIO"; private static final String PERF = "PERFORMANCE"; + private static final String UI = "UI_SCENARIO"; + public List getOwnerProjectIds(String userId) { Set userRelatedProjectIds = null; if (StringUtils.isEmpty(userId)) { @@ -89,6 +91,9 @@ public class TaskService { if (taskRequestMap.containsKey(PERF)) { microService.postForData(MicroServiceName.API_TEST, "/performance/stop/batch", taskRequestMap.get(PERF)); } + if(taskRequestMap.containsKey(UI)){ + microService.postForData(MicroServiceName.UI_TEST, "/ui/automation/stop/batch", reportIds); + } } }