refactor(测试计划): 关联性能测试用例时保存原用例压力配置
This commit is contained in:
parent
637a640c42
commit
1fcdf2cd95
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue