feat(接口测试): 修复接口测试报告统计不正常的问题
--bug=1013522 --user=宋天阳 【接口测试】批量执行场景,报告的数据统计是错的 https://www.tapd.cn/55049933/s/1165277
This commit is contained in:
parent
ae9e27ead9
commit
ad2a471e4d
|
@ -586,6 +586,8 @@ public class ApiScenarioReportStructureService {
|
||||||
AtomicLong allUnExecute = new AtomicLong();
|
AtomicLong allUnExecute = new AtomicLong();
|
||||||
this.countAllUnexecute(stepList, allUnExecute);
|
this.countAllUnexecute(stepList, allUnExecute);
|
||||||
reportDTO.setUnExecute(allUnExecute.longValue());
|
reportDTO.setUnExecute(allUnExecute.longValue());
|
||||||
|
//之前的total中请求数是按照获得报告的响应数来算的。这里要加上未执行的数量
|
||||||
|
reportDTO.setTotal(reportDTO.getTotal() + allUnExecute.longValue());
|
||||||
}
|
}
|
||||||
return reportDTO;
|
return reportDTO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue