fix(测试跟踪): 测试计划性能用例修改配置修改资源池后未按修改的资源池执行

--bug=1024600 --user=李玉号 【测试跟踪】测试计划-性能用例-修改配置修改资源池后未按修改的资源池执行
https://www.tapd.cn/55049933/s/1352489
This commit is contained in:
shiziyuan9527 2023-03-17 19:12:48 +08:00 committed by lyh
parent c152f7d310
commit a47001f15a
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ public class PerfModeExecService {
loadCase.setLoadReportId(request.getReportId()); loadCase.setLoadReportId(request.getReportId());
loadCase.setStatus(TestPlanLoadCaseStatus.run.name()); loadCase.setStatus(TestPlanLoadCaseStatus.run.name());
request.setId(loadCase.getLoadCaseId()); request.setId(loadCase.getLoadCaseId());
// 设置本次报告中的压力配置信息
request.setLoadConfiguration(loadCase.getLoadConfiguration());
request.setAdvancedConfiguration(loadCase.getAdvancedConfiguration());
request.setTestResourcePoolId(loadCase.getTestResourcePoolId());
try { try {
performanceTestService.run(request); performanceTestService.run(request);
} catch (Exception e) { } catch (Exception e) {