> On Mon, Dec 3, 2012 at 6:31 PM, sebb <[email protected]> wrote:
> > On 3 December 2012 07:02, Dongsheng Song
> <[email protected]> wrote:
> >> On Sun, Dec 2, 2012 at 8:03 PM, sebb <[email protected]> wrote:
> >>>
> >>> Yes, because as I previously wrote, User Parameters is executed for
> >>> every sampler.
> >>>
> >>> If you want to initialise variables, do so on the Test Plan.
> >>>
> >>
> >> So there no such variables which I can got (or modified) in one
> >> sampler processor and generate different results each time they are
> >> called, then used in the following sampler ?
> >
> > No, that's not what I meant.
> >
> > Variables are set by various test elements and are local to a thread,
> > and remain set until updated.
> > But you must ensure that you set them at the appropriate time.
> >
> > In the sample you provided the User Parameters element will be invoked
> > before every sample, so will occur just before HTTP POST TO PAGE02
> > which in turn will occur before the Timer.
> >
> > Add a Debug Sampler just before the loop and before HTTP POST TO
> > PAGE02 to see this.
> >
> > Please (re)read the manual, especially:
> >
> > http://jmeter.apache.org/usermanual/test_plan.html#executionorder
> >
> 
> That's what I wonder, If I want to use 'Sampler 1' BeanShell Post-Processor 1
> results in 'Sampler 2' Pre-Processor 1, what can I do ?

Put them in the same thread group...

+ThreadGroup
-+sampler1 (1)
--+samp1-post-processor1 (2)
-+sampler2 (4)
 --+samp2-pre-processor1 (3)

The number in brackets represents the run order.

Good luck,
Charlie

> 
> Thanks,
> Dongsheng
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

Reply via email to