Created attachment 38156 [details] scopingIssue Hello, It would be nice to be able to apply scoping rules to JSR223 PostProcessor, JSR223 Assertion, and JSR223 Listener elements using code and by selecting radio buttons as we have in other PostProcessors extractors, Assertions. For example Response assertion has a "Main sample and sub-samples", "Main sample only", "Sub-samples only", "JMeter variable Name to use" (not sure if this is required for JSR223 elements). Maybe to consider adding radio buttons named "Include Transaction controllers", "Include Transaction controllers only" and "Skip Transaction controllers"? I'm not sure if we are able to access Transaction controllers, rename labels, read response times etc. but that would be nice to have. I skipped JSR223 PreProcessor - maybe there is a need to include it in scoping, not sure. Let say we have a test plan like in the attachment. The actual result in Thread Group 1 is following: 1. "JSR223 PostProcessor - addSubResult" adds subsample to every JSR223 Sampler, ignoring Transaction Controllers which is fine. ============================= 2. "JSR223 PostProcessor - rename label" renames label only to JSR223 Sampler, not able to apply scoping to the subsample of JSR223 Sampler as well. Can't rename the label of the Transaction controller. ============================= 3. "JSR223 Assertion" seems to apply check on Sampler and Transaction Controllers but skips subsample of JSR223 Sampler. I would like to skip check on Transaction controllers and include check only for Samplers, so if we have set "Main sample and sub-samples" to check main sample and sub-samples, skipping Transaction Controllers. ============================= The actual result in Thread Group 2 is following: 4. "JSR223 Listener - addSubResult" adds subsample to last JSR223 Sampler 2 only. I would like to apply the creation of a subsample to every JSR223 Sampler in the test. JMeter 5.5-SNAPSHOT 462aaeb Microsoft Windows 10 Enterprise 64-bit java version "15.0.1"
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5616