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.
Thanks. Zhaoxia Yang On 19/12/2013, at 11:08 AM, sebb <[email protected]> wrote: > On 17 December 2013 01:12, saurabh gandotra > <[email protected]> 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 / >> messages.properties. >> If i append this property to the existing messages_X.properties , 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
