feat(接口测试): 修复接口测试报告统计不正常的问题

--bug=1013522 --user=宋天阳 【接口测试】批量执行场景,报告的数据统计是错的
https://www.tapd.cn/55049933/s/1165277
This commit is contained in:
song-tianyang 2022-05-26 16:51:47 +08:00 committed by f2c-ci-robot[bot]
parent 70f851c9e6
commit 6d45d28f70
1 changed files with 2 additions and 0 deletions

View File

@ -616,6 +616,8 @@ public class ApiScenarioReportStructureService {
AtomicLong allUnExecute = new AtomicLong();
this.countAllUnexecute(stepList, allUnExecute);
reportDTO.setUnExecute(allUnExecute.longValue());
//之前的total中请求数是按照获得报告的响应数来算的这里要加上未执行的数量
reportDTO.setTotal(reportDTO.getTotal() + allUnExecute.longValue());
}
return reportDTO;
}