diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/MsThreadGroup.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/MsThreadGroup.java index b4cdec49f0..4d9e3fdf3c 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/MsThreadGroup.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/MsThreadGroup.java @@ -147,9 +147,17 @@ public class MsThreadGroup extends MsTestElement { if (StringUtils.isNotEmpty(projectId)) { break; } + }else { + projectId = itemEl.getProjectId(); + if (StringUtils.isNotEmpty(projectId)) { + break; + } } } } + if(StringUtils.isEmpty(projectId)){ + projectId = el.getProjectId(); + } } } }