fix(UI自动化): 修复个人中心无法停止UI自动化任务的问题

This commit is contained in:
zhangyong 2022-10-13 17:12:12 +08:00 committed by zhangyongfit2cloud
parent 82bafb651e
commit b60b9c3b04
1 changed files with 5 additions and 0 deletions

View File

@ -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<String> getOwnerProjectIds(String userId) {
Set<String> 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);
}
}
}