diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java index 550d36972c..444ebab708 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanLoadCaseService.java @@ -99,6 +99,11 @@ public class TestPlanLoadCaseService { t.setCreateTime(System.currentTimeMillis()); t.setUpdateTime(System.currentTimeMillis()); t.setOrder(nextOrder); + LoadTestWithBLOBs loadTest = loadTestMapper.selectByPrimaryKey(id); + if (loadTest != null) { + t.setTestResourcePoolId(loadTest.getTestResourcePoolId()); + t.setLoadConfiguration(loadTest.getLoadConfiguration()); + } nextOrder += 5000; testPlanLoadCaseMapper.insert(t); }