From b60b9c3b04f5ce2d330b884b4f0fe685c4649b14 Mon Sep 17 00:00:00 2001 From: zhangyong Date: Thu, 13 Oct 2022 17:12:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=E8=87=AA=E5=8A=A8=E5=8C=96):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=81=9C=E6=AD=A2UI=E8=87=AA=E5=8A=A8=E5=8C=96=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/task/service/TaskService.java | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } }