fix(接口测试): 修复停止调试后,调试记录状态未更新问题
--bug=1023177 --user=赵勇 【接口测试】github#21873,接口自动化调试过程中点击停止,调试历史列表中状态不会更新 https://www.tapd.cn/55049933/s/1336738
This commit is contained in:
parent
aec818bcca
commit
5a3b855a68
|
@ -328,11 +328,11 @@ public class ApiScenarioController {
|
|||
List<TaskRequestDTO> reportIds = new ArrayList<>();
|
||||
TaskRequestDTO taskRequest = new TaskRequestDTO();
|
||||
taskRequest.setReportId(reportId);
|
||||
taskRequest.setType(ElementConstants.SCENARIO);
|
||||
taskRequest.setType(ElementConstants.SCENARIO_UPPER);
|
||||
reportIds.add(taskRequest);
|
||||
|
||||
WebSocketUtil.onClose(reportId);
|
||||
apiTaskService.stop(reportIds);
|
||||
apiTaskService.apiStop(reportIds);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ import org.springframework.transaction.annotation.Propagation;
|
|||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import jakarta.annotation.Resource;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -262,7 +263,8 @@ public class ApiScenarioReportService {
|
|||
report = new ApiScenarioReportWithBLOBs();
|
||||
report.setId(reportId);
|
||||
}
|
||||
if (StringUtils.equals(reportType, RunModeConstants.SET_REPORT.toString())) {
|
||||
if (StringUtils.equals(reportType, RunModeConstants.SET_REPORT.toString())
|
||||
|| StringUtils.equals(report.getStatus(), ApiReportStatus.STOPPED.name())) {
|
||||
return report;
|
||||
}
|
||||
if (StringUtils.equals(runMode, CommonConstants.CASE)) {
|
||||
|
|
Loading…
Reference in New Issue