fix(接口测试): 修复引用场景执行时测试报告数量统计不对的问题

修复引用场景执行时测试报告数量统计不对的问题
This commit is contained in:
song-tianyang 2022-03-23 16:53:16 +08:00 committed by xiaomeinvG
parent b5e430405e
commit 3851b26c07
3 changed files with 4 additions and 5 deletions

View File

@ -39,7 +39,9 @@ public class ApiScenarioReportResultService {
if (StringUtils.isNotEmpty(item.getName()) && item.getName().startsWith("Transaction=") && CollectionUtils.isEmpty(item.getSubRequestResults())) {
LoggerUtil.debug("合并事物请求暂不入库");
} else {
apiScenarioReportResultMapper.insert(this.newApiScenarioReportResult(reportId, item));
if (!StringUtils.startsWithAny(item.getName(), "PRE_PROCESSOR_ENV_", "POST_PROCESSOR_ENV_")) {
apiScenarioReportResultMapper.insert(this.newApiScenarioReportResult(reportId, item));
}
}
});
}

View File

@ -270,9 +270,6 @@ public class ApiScenarioReportStructureService {
public static void reportFormatting(List<StepTreeDTO> dtoList, Map<String, List<ApiScenarioReportResult>> maps) {
for (int index = 0; index < dtoList.size(); index++) {
StepTreeDTO dto = dtoList.get(index);
if(dto.getResourceId().equals("a1db7c43-9d07-4c35-b36e-d4498a1dc78a_19")){
System.out.println("-----");
}
dto.setIndex((index + 1));
List<ApiScenarioReportResult> reportResults = maps.get(dto.getResourceId());
if (CollectionUtils.isNotEmpty(reportResults)) {

View File

@ -367,7 +367,7 @@ export default {
this.fullTreeNodes = report.steps;
this.content.console = report.console;
this.content.error = report.error;
this.content.success = (report.total - report.error - report.errorCode);
this.content.success = (report.total - report.error - report.errorCode - report.unExecute);
this.totalTime = report.totalTime;
}
this.loading = false;