fix(测试计划): 性能测试修改高级配置后生成报告中高级配置信息都是空

--bug=1011583 --user=李玉号 【测试计划】-计划中关联性能测试-修改高级配置后执行该性能测试,生成报告中高级配置信息都是空
https://www.tapd.cn/55049933/s/1125552
This commit is contained in:
shiziyuan9527 2022-03-24 14:56:20 +08:00 committed by shiziyuan9527
parent 68fbde1fe5
commit e2cc4b2b61

View File

@ -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());