Commit 8cf9990f authored by fit2-zhao's avatar fit2-zhao Committed by fit2-zhao
Browse files

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

--bug=1014475 --user=赵勇 【接口测试】github#15358,计数器顺序读取不对 https://www.tapd.cn/55049933/s/1192576
parent cd7e841e
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment