fix(接口测试): 修复报告排序错误问题

--bug=1014475 --user=赵勇 【接口测试】github#15358,计数器顺序读取不对 https://www.tapd.cn/55049933/s/1192576
This commit is contained in:
fit2-zhao 2022-06-30 16:24:56 +08:00 committed by fit2-zhao
parent cd7e841e49
commit 8cf9990f5d
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ public class ApiScenarioReportStructureService {
*/
private void orderLoops(List<StepTreeDTO> dtoList) {
try {
List<StepTreeDTO> steps = dtoList.stream().filter(e -> e.getValue() == null || StringUtils.isEmpty(e.getValue().getId()))
List<StepTreeDTO> steps = dtoList.stream().filter(e -> e.getValue() == null || e.getValue().getStartTime() == 0)
.collect(Collectors.toList());
// 都是没有结果的步骤不需要再次排序
if (dtoList.size() == steps.size()) {