diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java index be4668dca0..ce02aa3e16 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java @@ -67,7 +67,7 @@ public class ApiDefinitionExecResultService { for (RequestResult item : requestResults) { item.setEndTime(System.currentTimeMillis()); - if (item.getResponseResult() != null) { + if (item.getResponseResult() != null && item.getResponseResult().getResponseTime() <= 0) { item.getResponseResult().setResponseTime((item.getEndTime() - item.getStartTime())); } if (!StringUtils.startsWithAny(item.getName(), "PRE_PROCESSOR_ENV_", "POST_PROCESSOR_ENV_")) {