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 <[email protected]> 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 <[email protected]> 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 <[email protected] >> > >> 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: [email protected] >> <javascript:;> >> > For additional commands, e-mail: [email protected] >> > <javascript:;> >> > >> > >> >> -- >> Sent from My iPhone >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
