for the sampler and controller it's possible to use ifController but some time it's heavy for a small check, but for processor you should duplicate the sampler with two if controler to have if else behavior.
On Fri, Nov 26, 2021 at 12:39 PM Vladimir Sitnikov < [email protected]> wrote: > >Because to check if a sampler is enabled at the moment of the execution i > >think it should be checked in GenericController, in the next method > > If you wrap a component with "if controller", then ANY component (not sure > regarding pre/post processors) would get > dynamic support for free. > > That is exactly what I suggest in > https://lists.apache.org/thread/grjhy5qzw0lc94n5fngsffd99qxlxnk3 > > User plan: > ThreadGroup > HttpRequest(enabled=${httpreqenabled}, url="example.com") > > That plan should be auto-converted as follows: > ThreadGroup > IfController(condition=${httprequest}) > HttpRequest(enabled=true, url="example.com") > > Then individual components could be left as is. > > Vladimir >
