Bug 61711 - Add JSR223 Logic Controller
Summary: Add JSR223 Logic Controller
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.3
Hardware: All All
: P2 enhancement with 2 votes (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2017-11-02 08:48 UTC by orimarko
Modified: 2017-11-29 08:41 UTC (History)
2 users (show)


Note You need to log in before you can comment on or make changes to this bug.
Description orimarko 2017-11-02 08:48:35 UTC
JSR223 elements exists in most components but not as Logic Controller

If Controller have issues as performance issue and it isn't straight forward 

In the code of JSR223 you can choose your condition, if it's once only or a loop (while controller).

There's a need for a implementation of module controller to execute same code from different flows

There's a need for a JSR223 Critical Section Controller , currently doesn't prevent dead locks.

Other Logic Controllers can be executed/used inside JSR223 Controller
Comment 1 Philippe Mouawad 2017-11-02 23:32:45 UTC
How do you see this ?
While, Sampler, Pre/Post Processor, Listener , Assertion have 1 method.

The difference with Controller  is that there are many methods to implement, so I don't see how we could provide this as JSR223
Comment 2 orimarko 2017-11-29 08:41:25 UTC
I see it as a overriding WhileController, the condition will be JSR223 script which will return true/false at the end,

Also we can add a flag as Execute Once so it can be executed as If (/Once Only) Controller that will execute only once the the condition.

Also if script only return true and execute once - it will act as Simple Controller 

Note : Different scripts (pre defined maybe) can represent different controllers, but this is for future use.