Bug 65071

Summary: Transaction Controller appears on View Results Tree and JMeter results file when using prev.setIgnore() in JSR223 Processor
Product: JMeter Reporter: mspingher
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: mspingher
Priority: P2    
Version: 5.4   
Target Milestone: JMETER 5.4.1   
Hardware: PC   
OS: All   
Attachments: Screenshot displaying Transaction Controller in View Results Tree while prev.setIgnore() is called in JSR223 PostProcessor
Sample test plan attached to verify and show the issue

Description mspingher 2021-01-11 21:33:57 UTC
Created attachment 37696 [details]
Screenshot displaying Transaction Controller in View Results Tree while prev.setIgnore() is called in JSR223 PostProcessor

Hello,

When using prev.setIgnore() in a JSR223 PostProcessor, it is not working as intended on JMeter 5.4 when attached under an HTTP Request sampler with a Transaction Controller at the parent level with/without 'Generate parent sample' checked. The Transaction Controller name still shows up in View Results Tree and in the JMeter results file.

JMeter version - 5.4 and 5.4.1-SNAPSHOT 9841a2a (Build #176 Dec 18, 2020 11:24:49 PM)
Java version - 1.8.0_251
OS version - Windows 10 64-Bit (Build 19041)

Reproduction Steps -
1. Add a JSR223 PostProcessor to an HTTP Request sampler with a Transaction Controller at the parent level (with/without 'Generate parent sample' checked), select Groovy 3.0.5 as the scripting language and in the script call prev.setIgnore().
2. Switch to the View Results Tree and run the script.
3. Verify if the HTTP Request sample appears in the View Results Tree.
4. Open the JMeter results file and verify if an entry for that HTTP Request was written to the results file.

prev.setIgnore() works as intended on JMeter 4.0 r1823414.

Followed up from Bug [65008] which is similar but may not be related.

Thank you,
-mspingher (mspingher at visionpointsystems.com)
Comment 1 mspingher 2021-01-11 21:35:01 UTC
Created attachment 37697 [details]
Sample test plan attached to verify and show the issue