fix(UI 自动化): 报告计算方式

This commit is contained in:
zhangdahai112 2022-08-18 17:20:39 +08:00 committed by zhangdahai112
parent 817ce00546
commit 1a110c244e
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ public class ApiScenarioReportService {
StringUtils.isNotEmpty(requestResult.getResponseResult().getHeaders())
&& JSONArray.parseArray(requestResult.getResponseResult().getHeaders()).stream().filter(
r -> ((JSONObject) r).containsKey("success") && !((JSONObject) r).getBoolean("success")
).anyMatch())
).count() > 0)
.count();
} catch (Exception e) {
// UI 返回的结果在 headers 里面格式不符合规范的直接认定结果为失败