mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 11:08:38 +08:00
fix(UI自动化): 修复个人中心无法停止UI自动化任务的问题
This commit is contained in:
parent
82bafb651e
commit
b60b9c3b04
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user