fix(接口测试): 修复失败后停止执行的场景中包含条件控制器时显示成功的缺陷

--bug=1026509 --user=王孝刚 【接口测试】场景列表中批量执行时 选串行-集合报告-失败停止+k8s资源池
执行,报告显示失败后仍执行了一个场景。 https://www.tapd.cn/55049933/s/1376352
This commit is contained in:
wxg0103 2023-05-26 18:05:29 +08:00 committed by fit2-zhao
parent dbec44fa70
commit 2c7aede979
1 changed files with 2 additions and 2 deletions

View File

@ -308,8 +308,8 @@ public class ApiScenarioReportStructureService {
dto.setValue(new RequestResultExpandDTO(dto.getLabel(), ApiReportStatus.PENDING.name()));
} else if (StringUtils.isNotEmpty(dto.getType()) && CONTROLS.contains(dto.getType()) && dto.getValue() == null) {
// 条件控制步骤
dto.setTotalStatus(ApiReportStatus.SUCCESS.name());
dto.setValue(new RequestResultExpandDTO(dto.getLabel(), ApiReportStatus.SUCCESS.name()));
dto.setTotalStatus(ApiReportStatus.PENDING.name());
dto.setValue(new RequestResultExpandDTO(dto.getLabel(), ApiReportStatus.PENDING.name()));
} else if (dto.getValue() instanceof RequestResultExpandDTO && StringUtils.isNotEmpty((dto.getValue()).getStatus())) {
dto.setTotalStatus((dto.getValue()).getStatus());
} else if (dto.getValue() != null && StringUtils.isEmpty(dto.getTotalStatus())) {