There does seem to be a bug - in 1.9.1 it looks like the Java defaults over-ride all the sampler values, at least for the JavaTest Sampler.
The existing example samplers ignore any *extra* parameters - not sure what they would do with them anyway. Perhaps the Add/Delete buttons should be removed... Deleting one of the default variables does appear to allow the sampler value to take precedence - but the variable is re-instated when the test element is next displayed. This needs to be checked against the latest version of CVS, but it does look like a bug. S. >-----Original Message----- >From: Daniel Rabe [mailto:[EMAIL PROTECTED] >Sent: 27 January 2004 23:30 >To: 'JMeter Users List' >Subject: RE: Trying to work with Java Request, parameter add/delete >doesn' t stick > > >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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]