diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index 5c4818cd13..3da02acc9e 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -576,6 +576,7 @@ public class PerformanceTestService { copy.setUserId(Objects.requireNonNull(SessionUtils.getUser()).getId()); copy.setCreateUser(Objects.requireNonNull(SessionUtils.getUser()).getId()); copy.setNum(getNextNum(copy.getProjectId())); + copy.setRefId(copy.getId()); loadTestMapper.insert(copy); // copy test file copyLoadTestFiles(request.getId(), copy.getId());