Jmeter源碼之TestPlan(四)
阿新 • • 發佈:2018-03-23
Jmeter類:TestPlanGui.java
方法:createPopupMenu(){
}
截圖:
TestPlan.serialize_threadgroups=false,
TestPlan.user_defined_variables=,
TestPlan.user_define_classpath=}
界面:
對應代碼:
public TestPlanGui() {
browseJar = new FileListPanel(JMeterUtils.getResString("test_plan_classpath_browse"), ".jar"); // $NON-NLS-1$ $NON-NLS-2$
argsPanel = new ArgumentsPanel(JMeterUtils.getResString("user_defined_variables")); // $NON-NLS-1$
serializedMode = new JCheckBox(JMeterUtils.getResString("testplan.serialized")); // $NON-NLS-1$
functionalMode = new JCheckBox(JMeterUtils.getResString("functional_mode")); // $NON-NLS-1$
tearDownOnShutdown = new JCheckBox(JMeterUtils.getResString("teardown_on_shutdown"), true); // $NON-NLS-1$
init();
}
方法:createPopupMenu(){
}
截圖:
主界面:
數據:
{TestElement.name=測試計劃,
TestElement.gui_class=org.apache.jmeter.control.gui.TestPlanGui,
TestElement.test_class=org.apache.jmeter.testelement.TestPlan,
TestElement.enabled=true,
TestPlan.comments=,
TestPlan.functional_mode=false,
TestPlan.tearDown_on_shutdown=true,
TestPlan.user_defined_variables=,
TestPlan.user_define_classpath=}
界面:
對應代碼:
public TestPlanGui() {
browseJar = new FileListPanel(JMeterUtils.getResString("test_plan_classpath_browse"), ".jar"); // $NON-NLS-1$ $NON-NLS-2$
argsPanel = new ArgumentsPanel(JMeterUtils.getResString("user_defined_variables")); // $NON-NLS-1$
functionalMode = new JCheckBox(JMeterUtils.getResString("functional_mode")); // $NON-NLS-1$
tearDownOnShutdown = new JCheckBox(JMeterUtils.getResString("teardown_on_shutdown"), true); // $NON-NLS-1$
}
Jmeter源碼之TestPlan(四)