org.apache.jmeter.threads.gui.ThreadGroupGui Java Examples

The following examples show how to use org.apache.jmeter.threads.gui.ThreadGroupGui. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JmxThreadGroup.java    From postman2jmx with MIT License 6 votes vote down vote up
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;
}