From 132eca430444c18e63cc81877d4b8280aa75d28e Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 2 Jun 2022 17:44:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E6=89=A7=E8=A1=8C=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=97=B6CSV=E6=96=87=E4=BB=B6=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013783 --user=赵勇 【接口测试】带csv的场景,删除服务器上的csv文件,并行执行,会一直running https://www.tapd.cn/55049933/s/1172922 --- .../metersphere/api/exec/utils/GenerateHashTreeUtil.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/exec/utils/GenerateHashTreeUtil.java b/backend/src/main/java/io/metersphere/api/exec/utils/GenerateHashTreeUtil.java index a3f90ca861..1ed50d5949 100644 --- a/backend/src/main/java/io/metersphere/api/exec/utils/GenerateHashTreeUtil.java +++ b/backend/src/main/java/io/metersphere/api/exec/utils/GenerateHashTreeUtil.java @@ -142,16 +142,15 @@ public class GenerateHashTreeUtil { group.setHashTree(scenarios); testPlan.getHashTree().add(group); - + ParameterConfig config = new ParameterConfig(); + config.setScenarioId(item.getId()); + config.setReportType(runRequest.getReportType()); + testPlan.toHashTree(jmeterHashTree, testPlan.getHashTree(), config); LoggerUtil.info("报告ID" + runRequest.getReportId() + " 场景资源:" + item.getName() + ", 生成执行脚本JMX成功"); } catch (Exception ex) { remakeException(runRequest); LoggerUtil.error("报告ID" + runRequest.getReportId() + " 场景资源:" + item.getName() + ", 生成执行脚本失败", ex); } - ParameterConfig config = new ParameterConfig(); - config.setScenarioId(item.getId()); - config.setReportType(runRequest.getReportType()); - testPlan.toHashTree(jmeterHashTree, testPlan.getHashTree(), config); return jmeterHashTree; }