From 1a57e651ebad8e0d3df62a74519572b8c86b9f17 Mon Sep 17 00:00:00 2001 From: "song.tianyang" Date: Wed, 27 Jan 2021 11:20:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92-?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=EF=BC=8C=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0=E8=A1=A8=E6=A0=BC=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E5=91=8AID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试计划-性能测试,运行时更新表格中的报告ID --- .../java/io/metersphere/job/sechedule/TestPlanTestJob.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/job/sechedule/TestPlanTestJob.java b/backend/src/main/java/io/metersphere/job/sechedule/TestPlanTestJob.java index 4067a6981f..264a66f673 100644 --- a/backend/src/main/java/io/metersphere/job/sechedule/TestPlanTestJob.java +++ b/backend/src/main/java/io/metersphere/job/sechedule/TestPlanTestJob.java @@ -133,7 +133,6 @@ public class TestPlanTestJob extends MsScheduleJob { performanceRequest.setId(caseID); performanceRequest.setTestPlanLoadId(caseID); performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name()); - String reportId = null; try { reportId = performanceTestService.run(performanceRequest); @@ -148,6 +147,11 @@ public class TestPlanTestJob extends MsScheduleJob { }catch (Exception e){ e.printStackTrace(); } + //更新关联处的报告 + TestPlanLoadCase loadCase = new TestPlanLoadCaseDTO(); + loadCase.setId(id); + loadCase.setLoadReportId(reportId); + testPlanLoadCaseService.update(loadCase); } if(!performaneReportIDList.isEmpty()){