fix(接口测试): 修复用例集成报告中当误报优先级小于失败优先级时出现的统计错误

--bug=1013308 --user=宋天阳 【接口测试】批量执行case-开启误报-报告中误报tab页未显示误报数据,显示到了失败tab页
https://www.tapd.cn/55049933/s/1167385
This commit is contained in:
song-tianyang 2022-05-30 10:52:50 +08:00 committed by TIanyang
parent 9e96b6b384
commit 2859095284
2 changed files with 2 additions and 3 deletions

View File

@ -471,8 +471,7 @@ public class ApiScenarioReportStructureService {
RequestResultExpandDTO expandDTO = (RequestResultExpandDTO) vo.getRequestResult();
if (expandDTO.getAttachInfoMap() != null && expandDTO.getAttachInfoMap().get("errorReportResult") != null) {
treeDTO.setErrorCode(expandDTO.getAttachInfoMap().get("errorReportResult"));
treeDTO.setTotalStatus("errorCode");
vo.setStatus("errorReportResult");
treeDTO.setTotalStatus(vo.getStatus());
} else if (StringUtils.isNotEmpty(expandDTO.getStatus())) {
vo.setStatus(expandDTO.getStatus());
treeDTO.setTotalStatus(expandDTO.getStatus());

View File

@ -73,7 +73,7 @@ export default {
if (this.isUi) {
return data.value.success === false && data.value.startTime > 0;
} else {
return data.value.error > 0;
return data.totalStatus !== 'errorReportResult' && data.value.error > 0;
}
}
}