What I found was that you have to specify the parameters you want the java sampler will accept by setting defaults in the getDefaultParameters() method. Your parameter(s) will then appear in the GUI and then you can change values (in the GUI) as you please and these will be saved to your .jmx file.
I havent tried using the Java Requests Defaults config element yet so cant help there.
Craig.
Daniel Rabe wrote:
Hmm, it still doesn't work for me.
I'm also trying to figure out how to use the "Java Request Defaults" config element. I create one and set some default values, but the actual Java Request sampler ignores those values. Am I doing something wrong?
Thanks, Daniel Rabe
-----Original Message-----
From: Craig Palmer [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:57 PM
To: JMeter Users List
Subject: Re: Trying to work with Java Request, parameter add/delete doesn't
st ick
I have noticed that too. However if you change focus to another field before jumping to another screen then the information seems to stay put.
Craig.
Daniel Rabe wrote:
I've subclassed AbstractJavaSamplerClient, and have had a good measure of success. JMeter is cool! (Unfortunately, the documentation on extending JMeter seems to be quite out-of-date. Being able to get at the source code has been very helpful.)
Anyway, ignoring my subclass for a moment, I'm playing with JavaTest and SleepTest (the examples that ship with JMeter). The sampler GUI has Add and Delete buttons; I can add a new request parameter, but when I switch to another object and come back to the Java Request, the added parameter had disappeared.
(a) Is this a bug in the examples?
(b) Is there a way for me to work around this behavior in my subclass? (My subclass wants to have a couple of optional request parameters.)
BTW, I'm using JMeter 1.9.1 on Windows XP with Java 1.4.2_02.
Thanks, Daniel Rabe
-- Craig Palmer Mobile NZ: +64 21 755 254 Peace Software URL: http://www.peace.com Email: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

