You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by rxfillpharm <rx...@yahoo.com.INVALID> on 2014/11/13 17:54:46 UTC
BEanshell Preprocessor?
Hi,
we have code in a beanshell preprocessor that is run for each sampler (100)+ for each thread.
It only needs to be processed once for each thread just before the first element in the thread.
My structure is:
test plan
beanshell preprocessor
thread group
transaction controller
logic controller-include
sampler2...
sampler110
Where should the beanshell preprocessor be placed so that it is run only once per thread (user)?
Is it a beanshell preprocessor that's needed or a different element?
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: BEanshell Preprocessor?
Posted by sebb <se...@gmail.com>.
Note that pre-processors will run before every sample in scope.
They will not run unless there is a sample in their scope.
Some possible options.
Thread Group Loop count = 1
+ Test Action
+ + Pre-Processor
+ Loop Controller, count = N
+ + Main test body
Thread Group, loop count = N
+ Once Only Controller
+ + Test Action
+ + Pre-Processor
+ Main test body
On 13 November 2014 17:13, Marko Vlahovic <vl...@gmail.com> wrote:
> Try:
>
> test plan
> thread group
> beanshell sampler (add here your beanshell code)
> transaction controller
> logic controller-include
> sampler2...
> sampler110
>
> or
> test plan
> thread group
> Test Action
> beanshell preprocessor
> transaction controller
> logic controller-include
> sampler2...
> sampler110
>
>
> On Thu, Nov 13, 2014 at 12:08 PM, Britto C <br...@gmail.com> wrote:
>
>> If your need is to run the samplers 100+ times means, add a loop controller
>> and and the sampler as a child inside the controller..
>>
>> No need for The beanshell preprocessor
>>
>> On Thursday, November 13, 2014, rxfillpharm <rxfillpharm@yahoo.com.invalid
>> >
>> wrote:
>>
>> > Hi,
>> > we have code in a beanshell preprocessor that is run for each sampler
>> > (100)+ for each thread.
>> > It only needs to be processed once for each thread just before the first
>> > element in the thread.
>> > My structure is:
>> >
>> > test plan
>> > beanshell preprocessor
>> > thread group
>> > transaction controller
>> > logic controller-include
>> > sampler2...
>> > sampler110
>> >
>> > Where should the beanshell preprocessor be placed so that it is run only
>> > once per thread (user)?
>> > Is it a beanshell preprocessor that's needed or a different element?
>> >
>> > Thank you.
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> <javascript:;>
>> > For additional commands, e-mail: user-help@jmeter.apache.org
>> > <javascript:;>
>> >
>> >
>>
>> --
>> Sent from My iPhone
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: BEanshell Preprocessor?
Posted by Marko Vlahovic <vl...@gmail.com>.
Try:
test plan
thread group
beanshell sampler (add here your beanshell code)
transaction controller
logic controller-include
sampler2...
sampler110
or
test plan
thread group
Test Action
beanshell preprocessor
transaction controller
logic controller-include
sampler2...
sampler110
On Thu, Nov 13, 2014 at 12:08 PM, Britto C <br...@gmail.com> wrote:
> If your need is to run the samplers 100+ times means, add a loop controller
> and and the sampler as a child inside the controller..
>
> No need for The beanshell preprocessor
>
> On Thursday, November 13, 2014, rxfillpharm <rxfillpharm@yahoo.com.invalid
> >
> wrote:
>
> > Hi,
> > we have code in a beanshell preprocessor that is run for each sampler
> > (100)+ for each thread.
> > It only needs to be processed once for each thread just before the first
> > element in the thread.
> > My structure is:
> >
> > test plan
> > beanshell preprocessor
> > thread group
> > transaction controller
> > logic controller-include
> > sampler2...
> > sampler110
> >
> > Where should the beanshell preprocessor be placed so that it is run only
> > once per thread (user)?
> > Is it a beanshell preprocessor that's needed or a different element?
> >
> > Thank you.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> > <javascript:;>
> >
> >
>
> --
> Sent from My iPhone
>
Re: BEanshell Preprocessor?
Posted by Britto C <br...@gmail.com>.
If your need is to run the samplers 100+ times means, add a loop controller
and and the sampler as a child inside the controller..
No need for The beanshell preprocessor
On Thursday, November 13, 2014, rxfillpharm <rx...@yahoo.com.invalid>
wrote:
> Hi,
> we have code in a beanshell preprocessor that is run for each sampler
> (100)+ for each thread.
> It only needs to be processed once for each thread just before the first
> element in the thread.
> My structure is:
>
> test plan
> beanshell preprocessor
> thread group
> transaction controller
> logic controller-include
> sampler2...
> sampler110
>
> Where should the beanshell preprocessor be placed so that it is run only
> once per thread (user)?
> Is it a beanshell preprocessor that's needed or a different element?
>
> Thank you.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
>
>
--
Sent from My iPhone