jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: BEanshell Preprocessor?
Date Fri, 14 Nov 2014 01:48:01 GMT
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 <vlahovic74@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 <brittobtech@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


Mime
View raw message