diff --git a/api-test/backend/src/main/java/io/metersphere/api/jmeter/utils/ReportStatusUtil.java b/api-test/backend/src/main/java/io/metersphere/api/jmeter/utils/ReportStatusUtil.java index e868dd883e..9b0cfb9cbc 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/jmeter/utils/ReportStatusUtil.java +++ b/api-test/backend/src/main/java/io/metersphere/api/jmeter/utils/ReportStatusUtil.java @@ -64,7 +64,7 @@ public class ReportStatusUtil { // 默认状态 String status = dto.getRequestResults().isEmpty() && StringUtils.isEmpty(resultVO.getStatus()) ? ApiReportStatus.PENDING.name() - : ApiReportStatus.SUCCESS.name(); + : StringUtils.defaultIfEmpty(resultVO.getStatus(), ApiReportStatus.SUCCESS.name()); if (errorSize > 0) { status = ApiReportStatus.ERROR.name();