jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Can we use a beanshell as Once only controller
Date Wed, 01 Feb 2012 18:14:05 GMT
Hi
Only Once is per thread - if you want this once for the whole test then you
should probably be using the Setup ThreadGroup (or you can use an If
controller which only executes its children for threadnumber 1)

regards
deepak

On Wed, Feb 1, 2012 at 9:34 AM, Nirodha Pramod <nirodha@wso2.com> wrote:

> Hi,
>
> I was using a beanshell preprocessor and it was not working because there
> was no sampler for that. When I added a sampler it worked. But the issue it
> gets executed the number of times as the number of threads(1000 times as my
> thread count is 1000), and not only once. What is the issue with that?
>
> Thanks,
> Nirodha
>
> On Wed, Feb 1, 2012 at 2:29 AM, Deepak Shetty <shettyd@gmail.com> wrote:
>
> > Beanshell sampler or preprocessor?
> > If sampler then check the logs if there are errors. If pre/post processor
> > then these need at least one sampler to run against
> >
> > regards
> > deepak
> >
> > On Tue, Jan 31, 2012 at 12:47 PM, Nirodha Pramod <nirodha@wso2.com>
> wrote:
> >
> > > Hi,
> > >
> > > I have used a beanshell as a child of Once only controller. But it
> > doesn't
> > > seem to run the beanshell never. I have put a print statement just to
> > > debug, but it never gets printed. Is it a correct way to use the once
> in
> > > controller. Can someone give a solution, please.
> > >
> > > Thanks,
> > > Nirodha
> > >
> > > --
> > > *Nirodha Gallage*
> > > Software Engineer, QA.
> > > WSO2 Inc.: http://wso2.com/
> > > Email: nirodha@wso2.com   Mobile: +94716429078
> > >
> >
>
>
>
> --
> *Nirodha Gallage*
> Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Email: nirodha@wso2.com   Mobile: +94716429078
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message