Bug 65795 - Implementing "Apply to" scoping rules to JSR223 PostProcessor, JSR223 Assertion and JSR223 Listener elements
Summary: Implementing "Apply to" scoping rules to JSR223 PostProcessor, JSR223 Asserti...
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.4.3
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-10 00:41 UTC by eR@SeR
Modified: 2022-02-20 19:49 UTC (History)
1 user (show)



Attachments
scopingIssue (109.65 KB, application/x-zip-compressed)
2022-01-10 00:41 UTC, eR@SeR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eR@SeR 2022-01-10 00:41:57 UTC
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"
Comment 1 The ASF infrastructure team 2022-09-24 20:38:23 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5616