automation.library.conversion2jmx.common.model.jmx.JmxTestPlan 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.config.Arguments;
import org.apache.jmeter.control.gui.TestPlanGui;
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.testelement.TestPlan;
public class JmxTestPlan {
public static TestPlan newInstance(String name) {
TestPlan testPlan = new TestPlan();
testPlan.setProperty(TestElement.TEST_CLASS, TestPlan.class.getName());
testPlan.setProperty(TestElement.GUI_CLASS, TestPlanGui.class.getName());
testPlan.setName(name);
testPlan.setEnabled(true);
testPlan.setFunctionalMode(false);
testPlan.setComment("");
testPlan.setSerialized(false);
testPlan.setTestPlanClasspath("");
testPlan.setUserDefinedVariables(new Arguments());
return testPlan;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy