From a30ec5d36430084e40c4c372dff0c1282cfd265d Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 24 Mar 2022 14:56:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E4=BF=AE=E6=94=B9=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E9=85=8D=E7=BD=AE=E5=90=8E=E7=94=9F=E6=88=90=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E4=B8=AD=E9=AB=98=E7=BA=A7=E9=85=8D=E7=BD=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=83=BD=E6=98=AF=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1011583 --user=李玉号 【测试计划】-计划中关联性能测试-修改高级配置后执行该性能测试,生成报告中高级配置信息都是空 https://www.tapd.cn/55049933/s/1125552 --- .../performance/service/PerformanceTestService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index fea3b0875f..89b172ba66 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -456,7 +456,8 @@ public class PerformanceTestService { // 保存测试里的配置 testReport.setTestResourcePoolId(loadTest.getTestResourcePoolId()); testReport.setLoadConfiguration(loadTest.getLoadConfiguration()); - + // 启动插入 report + testReport.setAdvancedConfiguration(loadTest.getAdvancedConfiguration()); String testPlanLoadId = request.getTestPlanLoadId(); if (StringUtils.isNotBlank(testPlanLoadId)) { // 设置本次报告中的压力配置信息 @@ -471,8 +472,6 @@ public class PerformanceTestService { testReport.setTestResourcePoolId(testPlanLoadCase.getTestResourcePoolId()); } } - // 启动插入 report - testReport.setAdvancedConfiguration(loadTest.getAdvancedConfiguration()); testReport.setStatus(PerformanceTestStatus.Starting.name()); testReport.setProjectId(loadTest.getProjectId()); testReport.setTestName(loadTest.getName());