diff --git a/backend/src/main/java/io/metersphere/api/service/TestResultService.java b/backend/src/main/java/io/metersphere/api/service/TestResultService.java index c3dcda4937..b38918dfa2 100644 --- a/backend/src/main/java/io/metersphere/api/service/TestResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/TestResultService.java @@ -92,7 +92,7 @@ public class TestResultService { ApiScenarioReport scenarioReport = apiScenarioReportService.complete(testResult, runMode); //环境 if (scenarioReport != null) { - ApiScenarioWithBLOBs apiScenario = apiAutomationService.getDto(scenarioReport.getScenarioId()); + ApiScenarioWithBLOBs apiScenario = apiAutomationService.getApiScenario(scenarioReport.getScenarioId()); String environment = ""; //执行人 String userName = "";