automation.library.conversion2jmx.common.model.jmx.JmxThreadGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of library-conversion2jmx Show documentation
Show all versions of library-conversion2jmx Show documentation
The 'conversion2jmx' library to helps creating JMeter JMX files from different sources
The newest version!
package automation.library.conversion2jmx.common.model.jmx;
import org.apache.jmeter.control.LoopController;
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.threads.ThreadGroup;
import org.apache.jmeter.threads.gui.ThreadGroupGui;
public class JmxThreadGroup {
public static ThreadGroup newInstance(LoopController loopController) {
ThreadGroup threadGroup = new ThreadGroup();
threadGroup.setProperty(TestElement.TEST_CLASS, ThreadGroup.class.getName());
threadGroup.setProperty(TestElement.GUI_CLASS, ThreadGroupGui.class.getName());
threadGroup.setName("Http URL/API Test");
threadGroup.setEnabled(true);
threadGroup.setSamplerController(loopController);
threadGroup.setNumThreads(1);
threadGroup.setRampUp(1);
threadGroup.setScheduler(false);
threadGroup.setDuration(0);
threadGroup.setDelay(0);
threadGroup.setComment("");
threadGroup.setProperty(ThreadGroup.ON_SAMPLE_ERROR, "continue");
return threadGroup;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy