jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhaoxia Yang <>
Subject Re: creating a resource bundle for a custom jmeter listener
Date Wed, 26 Feb 2014 23:38:28 GMT
I also have similar issue. Except TestBean framework, Can I do as below work to define my properties
file for my GUI labels?
Add my own ResourceBundleManager;
Then register it as a Jmeter's LocaleChangeListener. JMeterUtils.addLocaleChangeListener(…).

Thus, Once the JMeter global Locale changes, my ResourceBundleManager can react accordingly.
Is this feasible? Looks like it's a easier way than recoding to TestBean.

Zhaoxia Yang

On 19/12/2013, at 11:08 AM, sebb <> wrote:

> On 17 December 2013 01:12, saurabh gandotra
> <> wrote:
>> Hi All -
>> I've created a custom JMeter listener however I'm having trouble creating a resource
bundle for locale specific title / other label's.
>> For eg:
>> <code>public class CustomReport extends AbstractVisualizer implements Clearable,
ActionListener, TableModelListener {....
>> @Override    public String getLabelResource() {        return "custom_summary_report";
 //$NON-NLS-1$    }
>> </code>
>> the method getLabelResource, uses JMeterUtils.getResString to read the locale specific
resource located @  org / apache / jmeter / resources /
>> If i append this property to the existing , the title is set
properly however, I want to be able to specify a custom property bundle and package it with
the jar which contains the custom listener.
>> Is there a way to override this behavior and provide my own properties file which
gets appended to the existing?
> You can override getStaticLabel()
> Alternatively, recode as a TestBean and you can provide your own
> properties file.
>> Thanks,saurabh gandotra

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message