diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java index 7215d02eef..e6f8218c1c 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java @@ -539,6 +539,7 @@ public class TestCaseService { num.set(getNextNum(projectId) + testCases.size()); testCases.forEach(testcase -> { testcase.setId(UUID.randomUUID().toString()); + testcase.setCreateUser(SessionUtils.getUserId()); testcase.setCreateTime(System.currentTimeMillis()); testcase.setUpdateTime(System.currentTimeMillis()); testcase.setNodeId(nodePathMap.get(testcase.getNodePath()));