Skip to content

Commit

Permalink
Merge pull request #385 from dongyi0412/dev
Browse files Browse the repository at this point in the history
feat:测试套件报告用例信息按照开始执行步骤进行排序
  • Loading branch information
ZhouYixun authored Sep 27, 2023
2 parents 3bad50e + ff063db commit 1cb52cf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ public JSONArray findCaseStatus(int id) {
jsonObject.put("status", status);
jsonObject.put("device", device);
result.add(jsonObject);
// 按照执行开始时间排序 - 升序
result.sort(Comparator.comparing(
obj -> ((JSONObject) obj).getDate("startTime"))
);
}
return result;
} else {
Expand Down

0 comments on commit 1cb52cf

Please sign in to comment.