Hi thanks , that worked. regards deepak On Sun, Apr 26, 2009 at 10:59 AM, sebb <seb...@gmail.com> wrote:
> If you look in the log file, you should see why - the BSH sampler > variable is set to the TransactionSampler. > > This is obviously a bug. > > As a temporary work-round, you can add the following to the BSH code: > > if (sampler instanceof org.apache.jmeter.control.TransactionSampler) { > sampler=sampler.getSubSampler(); > } > > > On 26/04/2009, Deepak Shetty <shet...@gmail.com> wrote: > > Hi > > The BSH is getting executed in both cases, however sampler.addArgument > only > > works when the Generate Parent Sample is unchecked > > regards > > deepak > > > > > > On Fri, Apr 24, 2009 at 7:23 AM, sebb <seb...@gmail.com> wrote: > > > > > On 23/04/2009, Deepak Shetty <shet...@gmail.com> wrote: > > > > Hi > > > > Im using JMeter 2.3.2. I have the following structure > > > > Thread Group > > > > Transaction Controller > > > > HTTP Request > > > > BeanShell preprocessor > > > > The Pre processor does a sampler.addArgument("test","value"); > > > > > > > > If the Generate Parent Sample on the Transaction Controller is > unchecked > > > the > > > > argument gets added to the Post HTTP Request. If the Generate > Parent > > > Sample > > > > on the Transaction Controller is checked, then this doesn't work. I > > > could > > > > not find this as a bug in the Jmeter bugzilla. Can anyone confirm > that > > > this > > > > is indeed a bug? > > > > > > I've not tried it, but it does look like a bug. Try adding a print() > > > statement to the preprocessor. If it only appears in one case, then > > > there's clearly a bug. > > > > > > Please raise a Bugzilla issue if so, thanks. > > > > > > > regards > > > > > > > > deepak > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > > > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >