refactor(测试计划): 关联性能测试用例时保存原用例压力配置

This commit is contained in:
shiziyuan9527 2021-10-27 14:18:40 +08:00 committed by 刘瑞斌
parent 637a640c42
commit 1fcdf2cd95
1 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,11 @@ public class TestPlanLoadCaseService {
t.setCreateTime(System.currentTimeMillis()); t.setCreateTime(System.currentTimeMillis());
t.setUpdateTime(System.currentTimeMillis()); t.setUpdateTime(System.currentTimeMillis());
t.setOrder(nextOrder); t.setOrder(nextOrder);
LoadTestWithBLOBs loadTest = loadTestMapper.selectByPrimaryKey(id);
if (loadTest != null) {
t.setTestResourcePoolId(loadTest.getTestResourcePoolId());
t.setLoadConfiguration(loadTest.getLoadConfiguration());
}
nextOrder += 5000; nextOrder += 5000;
testPlanLoadCaseMapper.insert(t); testPlanLoadCaseMapper.insert(t);
} }