jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Transaction Controller Bug
Date Mon, 27 Apr 2009 01:33:24 GMT
FYI: the bug is fixed in r768846 and will be in nightlies from that revision.

On 26/04/2009, Deepak Shetty <shettyd@gmail.com> wrote:
> Hi
>  thanks , that worked.
>  regards
>
> deepak
>
>
>  On Sun, Apr 26, 2009 at 10:59 AM, sebb <sebbaz@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 <shettyd@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 <sebbaz@gmail.com> wrote:
>  > >
>  > >  > On 23/04/2009, Deepak Shetty <shettyd@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-unsubscribe@jakarta.apache.org
>  > >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  > >  >
>  > >  >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message