解决测试计划性能测试相关bug

This commit is contained in:
liangdaliang
2025-05-28 13:24:19 +08:00
parent 426ee6aae9
commit c71b9d8c63
5 changed files with 47 additions and 23 deletions

View File

@@ -283,6 +283,9 @@ public class JMeterGroupUtil {
threadGroup.setDelay(0);
if (executeType == 1) {
threadGroup.setDuration(pressureSecond);
threadGroup.setProperty(new TestElementProperty(ThreadGroup.MAIN_CONTROLLER, createLoopController(-1)));
threadGroup.setProperty(new StringProperty(ThreadGroup.SCHEDULER, "true"));
threadGroup.setProperty(new StringProperty(ThreadGroup.IS_SAME_USER_ON_NEXT_ITERATION, "true"));
} else {
threadGroup.setProperty(new TestElementProperty(ThreadGroup.MAIN_CONTROLLER, createLoopController(loops)));
}