fix: 测试计划-性能测试,运行时更新表格中的报告ID

测试计划-性能测试,运行时更新表格中的报告ID
This commit is contained in:
song.tianyang 2021-01-27 11:20:57 +08:00
parent 7035f6c0e3
commit 1a57e651eb
1 changed files with 5 additions and 1 deletions

View File

@ -133,7 +133,6 @@ public class TestPlanTestJob extends MsScheduleJob {
performanceRequest.setId(caseID); performanceRequest.setId(caseID);
performanceRequest.setTestPlanLoadId(caseID); performanceRequest.setTestPlanLoadId(caseID);
performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name()); performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name());
String reportId = null; String reportId = null;
try { try {
reportId = performanceTestService.run(performanceRequest); reportId = performanceTestService.run(performanceRequest);
@ -148,6 +147,11 @@ public class TestPlanTestJob extends MsScheduleJob {
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
} }
//更新关联处的报告
TestPlanLoadCase loadCase = new TestPlanLoadCaseDTO();
loadCase.setId(id);
loadCase.setLoadReportId(reportId);
testPlanLoadCaseService.update(loadCase);
} }
if(!performaneReportIDList.isEmpty()){ if(!performaneReportIDList.isEmpty()){