From 557da492ffdbbdc592714143ca2b38f079115ed3 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 29 Nov 2021 17:19:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E5=B9=B6=E5=8F=91=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=8A=A5=E5=91=8A=E5=AD=98=E5=82=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/api/service/MsResultService.java | 3 +++ 1 file changed, 3 insertions(+) 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();