jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenzo Fundaró <lorenzofund...@gmail.com>
Subject Re: possible issue with While Controller
Date Wed, 19 Nov 2014 09:38:18 GMT
@Flavio, that's what I did, I used a BeanShell Sampler and it did the
trick.

@sebb your suggestion also works.

Thank you guys. I appreciate your help. Great community :)




Lorenzo Fundaró García

On Tue, Nov 18, 2014 at 3:52 PM, sebb <sebbaz@gmail.com> wrote:

> You could also change the While condition to:
>
> ${CONTINUE}
>
> and change the Post-Processor to
>
> vars.put("CONTINUE","false");
>
> You don't then need to initialise the variable.
>
> Note that you can also initialiase variables on the Test Plan.
> The initial values are copied to each thread; subsequent changes apply
> to the thread only.
>
> On 18 November 2014 12:49, Flavio Cysne <flaviocysne@gmail.com> wrote:
> > @Lorenzo if you only need to set a initial value to a variable (in you
> case
> > "DONE_UPLOAD") you could do this in BeanShell Sampler. If this is the
> case,
> > there's no need to use a Post-Processor.
> >
> > 2014-11-18 9:33 GMT-03:00 Lorenzo Fundaró <lorenzofundaro@gmail.com>:
> >
> >> @Flavio your suggestion works best for me when using a Beanshell
> Sampler.
> >> Defining a User Variable it's not what I want because they have Thread
> >> Group scope. So now, the While Controller works putting a Beanshell
> Sampler
> >> before it and using a Beanshell PostProcessor. Thank you.
> >>
> >>
> >> Lorenzo Fundaró García
> >>
> >> On Tue, Nov 18, 2014 at 12:48 PM, Flavio Cysne <flaviocysne@gmail.com>
> >> wrote:
> >>
> >> > If you are using BeanShell Pre-Processor so it will be triggered only
> for
> >> > the samplers.
> >> >
> >> > I'm supposing that While Controller wasn't been executed, because
> >> BeanShell
> >> > Pre-Processor (or even Post-Processor) will not be triggered until a
> >> > Sampler is executed.
> >> >
> >> > That's why when you add a Debug Sampler before the While Controller it
> >> > works.
> >> >
> >> > Use an User Defined Variables configuration element to initialize
> >> > "DONE_UPLOAD" 's value or a BeanShell Sampler.
> >> >
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

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