Skip to content

Instantly share code, notes, and snippets.

@JanPaulEttles
Created April 26, 2012 09:55
Show Gist options
  • Select an option

  • Save JanPaulEttles/2498398 to your computer and use it in GitHub Desktop.

Select an option

Save JanPaulEttles/2498398 to your computer and use it in GitHub Desktop.
SamplerBeanInfo
import java.beans.PropertyDescriptor;
import org.apache.jmeter.testbeans.BeanInfoSupport;
import org.apache.jmeter.testbeans.gui.TextAreaEditor;
public class SamplerBeanInfo extends BeanInfoSupport {
public SamplerBeanInfo() {
super(Sampler.class);
createPropertyGroup("sampler", new String[]{"script"});
PropertyDescriptor pd = property("script");
pd.setValue(NOT_UNDEFINED, Boolean.FALSE);
pd.setValue(DEFAULT, "");
pd.setValue(NOT_EXPRESSION, Boolean.TRUE);
pd.setPropertyEditorClass(TextAreaEditor.class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment