private JCheckBox resetInterpreter; // reset the bsh.Interpreter before each execution
private JTextField filename; // script file name (if present)
private JTextField parameters; // parameters to pass to script file (or script)
private JTextArea scriptField; // script area
public [[#variabledfc9a20]]() {
init();
}
public void configure(TestElement element) {
scriptField.setText(element.getPropertyAsString( [[#variabledfcbee0]].SCRIPT));
filename.setText(element.getPropertyAsString( [[#variabledfcbee0]].FILENAME));
parameters.setText(element.getPropertyAsString( [[#variabledfcbee0]].PARAMETERS));
resetInterpreter.setSelected(element.getPropertyAsBoolean( [[#variabledfcbee0]].RESET_INTERPRETER));
super.configure(element);
}
public TestElement createTestElement() {
[[#variabledfcbee0]] sampler = new [[#variabledfcbee0]]();
modifyTestElement(sampler);
return sampler;
}
/**
* Modifies a given TestElement to mirror the data in the gui components.
*
* @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
*/
public void modifyTestElement(TestElement te) {
te.clear();
this.configureTestElement(te);
te.setProperty( [[#variabledfcbee0]].SCRIPT, scriptField.getText());
te.setProperty( [[#variabledfcbee0]].FILENAME, filename.getText());
te.setProperty( [[#variabledfcbee0]].PARAMETERS, parameters.getText());
te.setProperty(new BooleanProperty( [[#variabledfcbee0]].RESET_INTERPRETER, resetInterpreter.isSelected()));
}
|