fix(场景报告): 修复场景报告自定义插件步骤统计错误的问题

--bug=1009762 --user=宋天阳 【接口测试】带插件的场景,状态统计错误
https://www.tapd.cn/55049933/s/1094189
This commit is contained in:
song-tianyang 2022-01-19 14:40:53 +08:00 committed by song-tianyang
parent b86afe18d1
commit 861700e9d2
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ public class ApiScenarioReportStructureService {
if (step.getValue() != null) {
if (StringUtils.isNotEmpty(step.getErrorCode())) {
isErrorReport.set(isErrorReport.longValue() + 1);
} else if (step.getValue().getError() > 0) {
} else if (step.getValue().getError() > 0 || !step.getValue().isSuccess()) {
isError.set(isError.longValue() + 1);
}
} else if (CollectionUtils.isNotEmpty(step.getChildren())) {
@ -308,7 +308,7 @@ public class ApiScenarioReportStructureService {
if (step.getValue() != null && step.getValue().getError() > 0) {
if (StringUtils.isNotEmpty(step.getErrorCode())) {
isErrorReport.set(isErrorReport.longValue() + 1);
} else if (step.getValue().getError() > 0) {
} else if (step.getValue().getError() > 0 || !step.getValue().isSuccess()) {
isError.set(isError.longValue() + 1);
}
break;