fix(接口测试): 修复任务中心报告跳转问题及全部停止报错问题
--bug=1018298 --user=赵勇 【接口测试】接口自动化批量执行,任务中心点击详情名称进行跳转跳转到错误位置(系统设置) https://www.tapd.cn/55049933/s/1265592
This commit is contained in:
parent
bc681d6c58
commit
e5711a2351
|
@ -151,15 +151,12 @@ export default {
|
|||
$event.target.blur();
|
||||
},
|
||||
redirect() {
|
||||
let uuid = getUUID().substring(1, 5);
|
||||
let projectId = getCurrentProjectID();
|
||||
let workspaceId = getCurrentWorkspaceId();
|
||||
let path = `/api/automation/?redirectID=${uuid}&dataType=scenario&projectId=${projectId}&workspaceId=${workspaceId}&resourceId=${this.scenarioId}`;
|
||||
let data = this.$router.resolve({
|
||||
name: 'ApiAutomation',
|
||||
query: {
|
||||
redirectID: getUUID(),
|
||||
dataType: "scenario",
|
||||
projectId: getCurrentProjectID(),
|
||||
workspaceId: getCurrentWorkspaceId(),
|
||||
resourceId: this.scenarioId
|
||||
}
|
||||
path: path
|
||||
});
|
||||
window.open(data.href, '_blank');
|
||||
},
|
||||
|
|
|
@ -89,7 +89,7 @@ public class TaskService {
|
|||
microService.postForData(MicroServiceName.API_TEST, "/api/automation/stop/batch", reportIds);
|
||||
}
|
||||
if (taskRequestMap.containsKey(PERF)) {
|
||||
microService.postForData(MicroServiceName.API_TEST, "/performance/stop/batch", taskRequestMap.get(PERF));
|
||||
microService.postForData(MicroServiceName.PERFORMANCE_TEST, "/performance/stop/batch", taskRequestMap.get(PERF));
|
||||
}
|
||||
if(taskRequestMap.containsKey(UI)){
|
||||
microService.postForData(MicroServiceName.UI_TEST, "/ui/automation/stop/batch", reportIds);
|
||||
|
@ -100,7 +100,7 @@ public class TaskService {
|
|||
public void stopPerf(List<TaskRequestDTO> reportIds) {
|
||||
if (CollectionUtils.isNotEmpty(reportIds)) {
|
||||
Map<String, TaskRequestDTO> taskRequestMap = reportIds.stream().collect(Collectors.toMap(TaskRequestDTO::getType, taskRequest -> taskRequest));
|
||||
microService.postForData(MicroServiceName.API_TEST, "/performance/stop/batch", taskRequestMap.get(PERF));
|
||||
microService.postForData(MicroServiceName.PERFORMANCE_TEST, "/performance/stop/batch", taskRequestMap.get(PERF));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue