fix(接口测试): 修复用例集成报告中当误报优先级小于失败优先级时出现的统计错误
--bug=1013308 --user=宋天阳 【接口测试】批量执行case-开启误报-报告中误报tab页未显示误报数据,显示到了失败tab页 https://www.tapd.cn/55049933/s/1167385
This commit is contained in:
parent
9e96b6b384
commit
2859095284
|
@ -471,8 +471,7 @@ public class ApiScenarioReportStructureService {
|
||||||
RequestResultExpandDTO expandDTO = (RequestResultExpandDTO) vo.getRequestResult();
|
RequestResultExpandDTO expandDTO = (RequestResultExpandDTO) vo.getRequestResult();
|
||||||
if (expandDTO.getAttachInfoMap() != null && expandDTO.getAttachInfoMap().get("errorReportResult") != null) {
|
if (expandDTO.getAttachInfoMap() != null && expandDTO.getAttachInfoMap().get("errorReportResult") != null) {
|
||||||
treeDTO.setErrorCode(expandDTO.getAttachInfoMap().get("errorReportResult"));
|
treeDTO.setErrorCode(expandDTO.getAttachInfoMap().get("errorReportResult"));
|
||||||
treeDTO.setTotalStatus("errorCode");
|
treeDTO.setTotalStatus(vo.getStatus());
|
||||||
vo.setStatus("errorReportResult");
|
|
||||||
} else if (StringUtils.isNotEmpty(expandDTO.getStatus())) {
|
} else if (StringUtils.isNotEmpty(expandDTO.getStatus())) {
|
||||||
vo.setStatus(expandDTO.getStatus());
|
vo.setStatus(expandDTO.getStatus());
|
||||||
treeDTO.setTotalStatus(expandDTO.getStatus());
|
treeDTO.setTotalStatus(expandDTO.getStatus());
|
||||||
|
|
|
@ -73,7 +73,7 @@ export default {
|
||||||
if (this.isUi) {
|
if (this.isUi) {
|
||||||
return data.value.success === false && data.value.startTime > 0;
|
return data.value.success === false && data.value.startTime > 0;
|
||||||
} else {
|
} else {
|
||||||
return data.value.error > 0;
|
return data.totalStatus !== 'errorReportResult' && data.value.error > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue