fix(接口测试): 【接口测试】case集合报告,用例统计没显示误报

--bug=1013758 --user=宋天阳 【接口测试】case集合报告,用例统计没显示误报
https://www.tapd.cn/55049933/s/1171950
This commit is contained in:
song-tianyang 2022-06-01 18:52:25 +08:00 committed by f2c-ci-robot[bot]
parent 72bb76e5e4
commit 7cdcc8cf9b
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class ApiScenarioReportStructureService {
totalScenario.set(totalScenario.longValue() + 1); totalScenario.set(totalScenario.longValue() + 1);
if (StringUtils.equalsIgnoreCase(step.getTotalStatus(), "fail")) { if (StringUtils.equalsIgnoreCase(step.getTotalStatus(), "fail")) {
scenarioError.set(scenarioError.longValue() + 1); scenarioError.set(scenarioError.longValue() + 1);
} else if (StringUtils.equalsIgnoreCase(step.getTotalStatus(), "errorCode")) { } else if (StringUtils.equalsAnyIgnoreCase(step.getTotalStatus(), "errorCode", ExecuteResult.errorReportResult.name())) {
errorReport.set(errorReport.longValue() + 1); errorReport.set(errorReport.longValue() + 1);
} else if (!StringUtils.equalsIgnoreCase(step.getTotalStatus(), "success")) { } else if (!StringUtils.equalsIgnoreCase(step.getTotalStatus(), "success")) {
unExecute.set(unExecute.longValue() + 1); unExecute.set(unExecute.longValue() + 1);