Reputation: 494
I have 3 nested Loop Controllers with 3 jsr223 groovy preprocessors
Loop1 (2 loops)
|_ preprocessor1
|_Loop2 (3 loops)
|_preprocessor2
|_Loop3 (4 loops)
|_preprocessor3
|_HttpRequest
To keep things simple the thread group runs with 1 thread.
So I would expect 2*3*4 = 24 http requests. This is what I get. However for every htttp request...
preprocessor1 preprocessor2 preprocessor3
..all get called. Why?
What I want is preprocessor1 run for each iteration of loop1, preprocessor2 run for each iteration of loop2 and preprocessor3 run for each iteration of loop3, which to me is logical especially when you view the nested tree in the GUI.
Upvotes: 2
Views: 1643
Reputation: 58872
Preprocessor are hierarchial, meaning effect samplers in their hierarchy or below.
If a Pre-Processor is attached to a Sampler element, then it will execute just prior to that sampler element running.
If you want it to execute only on their position, you can put it under a Sampler, as Test Action which will have no effect
Upvotes: 4