Given that JavaSampler classes have user written code, it makes sense to
support the Description panel in the 'Send Parameters With the Request' panel.
However, delving into the code, it seems not so straightforward to change it as
there are side effects. Seems like there are 3 options
1. Changing JavaConfigGui to create a "standalone" panel as below
private JPanel createParameterPanel() {
- argsPanel = new
ArgumentsPanel(JMeterUtils.getResString("paramtable")); // $NON-NLS-1$
+ argsPanel = new ArgumentsPanel(JMeterUtils.getResString("paramtable"),
null, true, true);
return argsPanel;
}
But that would create the User defined variables header and to remove that
would means additional constructors and code changes to ArgumentsPanel class
2. Changing ArgumentsPanel to always include the description field by changing
initializeTableModel
3. Create a new JavaArgumentsPanel derived from Arguments and just handle it
specifically for java samplers but that would have upgrade implications for
existing JMX files.
None of these seem clean and have wider implications as I see it.
Any thoughts on best approach or another cleaner way. I have a number of Java
samplers, with default parameters that would really benefit from having the
description field available.
Antony