diff --git a/backend/src/main/java/io/metersphere/api/service/MsResultService.java b/backend/src/main/java/io/metersphere/api/service/MsResultService.java index 9b6fa71db2..25c5afdfb7 100644 --- a/backend/src/main/java/io/metersphere/api/service/MsResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/MsResultService.java @@ -102,6 +102,9 @@ public class MsResultService { public void formatTestResult(TestResult testResult, Map scenarios, SampleResult result) { String scenarioName = StringUtils.substringBeforeLast(result.getThreadName(), THREAD_SPLIT); + if (StringUtils.equals(scenarioName, "parallel")) { + scenarioName = testResult.getTestId(); + } ScenarioResult scenarioResult; if (!scenarios.containsKey(scenarioName)) { scenarioResult = new ScenarioResult();