apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.1k stars 2.06k forks source link

Transaction Controller appears on View Results Tree and JMeter results file when using prev.setIgnore() in JSR223 Processor #5486

Open asfimport opened 3 years ago

asfimport commented 3 years ago

mspingher (Bug 65071): 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)

Created attachment prevSetIgnore.jpg: Screenshot displaying Transaction Controller in View Results Tree while prev.setIgnore() is called in JSR223 PostProcessor

Screenshot displaying Transaction Controller in View Results Tree while prev.setIgnore() is called in JSR223 PostProcessor

Severity: normal OS: All

asfimport commented 3 years ago

mspingher (migrated from Bugzilla): Created attachment file_65071.txt: Sample test plan attached to verify and show the issue