Thanks for the info. I was able to modify the message.properties by renaming the ApacheJMeter_core.jar to ApacheJMeter_core.zip, update the message.properties file, and renaming it back to ApacheJMeter_core.jar
I also I have another issue when creating my own sampler. I have most parts working but for one thing. When I add more than one of my sampler to a Thread Group both sampler seem to share the same GUI. I mean if I have two "My Sampler" in Thread Group, changing a field in one changes the field in both sampler. What am I doing wrong? I'll do some more searching to see if my answer is nested somewhere in here. Thanks. I just started using JMeter this week. Peter Lin wrote: > > you have to add it to > src\core\org\apache\jmeter\resources\messages.properties > > then you have to make a new jar of the core stuff. > > peter > > On 10/20/06, Mark <[EMAIL PROTECTED]> wrote: >> >> I have been following the code in MailReaderSampler and >> MailReaderSamplerGui. I have my sampler showing up in JMeter, the >> problem is that I do not know where to load properties and >> configuration for the sampler. I get the following errors in >> jmeter.log >> >> 2006/10/20 16:19:50 INFO - jmeter.JMeter: Loaded icon properties from >> org/apache/jmeter/images/icon.properties >> 2006/10/20 16:19:51 WARN - jmeter.util.JMeterUtils: ERROR! Resource >> string not found: [smtp_sampler] java.util.MissingResourceException: >> Can't find resource for bundle java.util.PropertyResourceBundle, key >> smtp_sampler >> at java.util.ResourceBundle.getObject(ResourceBundle.java:325) >> at java.util.ResourceBundle.getString(ResourceBundle.java:285) >> at org.apache.jmeter.util.JMeterUtils.getResStringDefault( >> JMeterUtils.java:342) >> at org.apache.jmeter.util.JMeterUtils.getResString( >> JMeterUtils.java:306) >> at >> org.apache.jmeter.gui.AbstractJMeterGuiComponent.getStaticLabel >> (AbstractJMeterGuiComponent.java:292) >> at org.apache.jmeter.gui.AbstractJMeterGuiComponent.<init>( >> AbstractJMeterGuiComponent.java:80) >> at org.apache.jmeter.samplers.gui.AbstractSamplerGui.<init>( >> AbstractSamplerGui.java:37) >> >> >> >> On 10/20/06, Peter Lin <[EMAIL PROTECTED]> wrote: >> > go through the tutorial. basically, you need to put the jar file under >> > jmeter/lib/ directory and it will scan it. >> > >> > peter >> > >> > On 10/20/06, Mark <[EMAIL PROTECTED]> wrote: >> > > >> > > Peter - >> > > >> > > Thanks for the links, but either I am missing something, or I need >> > > more information. I want to write a sampler that will send SMTP >> > > messages to a server. I have the smtp code written, but I am unsure >> > > as to how to tie the SMTP protocol code to JMeter. How does the >> > > JMeter application know to load my classes, and what about writing a >> > > configuration GUI? >> > > >> > > Thanks. >> > > >> > > >> > > On 10/20/06, Peter Lin <[EMAIL PROTECTED]> wrote: >> > > > http://wiki.apache.org/jakarta-jmeter/JMeterDevelopment >> > > > >> > > > >> > > >> http://svn.apache.org/repos/asf/jakarta/jmeter/trunk/xdocs/extending/jmeter_tutorial.pdf >> > > > >> > > > >> > > > >> > > > On 10/20/06, Mark <[EMAIL PROTECTED]> wrote: >> > > > > >> > > > > These what you are talking about? >> > > > > >> > > > > http://wiki.apache.org/jakarta-jmeter/JMeterEclipse >> > > > > http://jakarta.apache.org/usermanual/junitsampler_tutorial.pdf >> > > > > >> > > > > Thank you. >> > > > > >> > > > > On 10/20/06, Peter Lin <[EMAIL PROTECTED]> wrote: >> > > > > > you can find a tutorial on the website. there's also some tips >> on >> > > the >> > > > > wiki >> > > > > > about setting up eclipse. >> > > > > > >> > > > > > peter >> > > > > > >> > > > > > On 10/20/06, Mark <[EMAIL PROTECTED]> wrote: >> > > > > > > >> > > > > > > Where can I find information on writing a custom sampler for >> > > jmeter? >> > > > > > > >> > > > > > > Thank you. >> > > > > > > >> > > > > > > >> > > --------------------------------------------------------------------- >> > > > > > > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> > > > > > > For additional commands, e-mail: >> > > [EMAIL PROTECTED] >> > > > > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > > >> --------------------------------------------------------------------- >> > > > > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> > > > > For additional commands, e-mail: >> [EMAIL PROTECTED] >> > > > > >> > > > > >> > > > >> > > > >> > > >> > > --------------------------------------------------------------------- >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > > >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/writing-custom-sampler-howto--tf2480982.html#a7266725 Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

