-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SampleResult.setIgnore() called from PostProcessor is not considered #5461
Comments
@pmouawad (migrated from Bugzilla): Thank you |
mspingher (migrated from Bugzilla): I've attached a sample test plan for you to be able to execute. Once you run the script, you can see [MYAPI-000 - Some API] showing up in the View Results Tree as well as in the results CSV file even though the HTTP Request sampler has a JSR223 PostProcessor with prev.setIgnore(). Let me know if you need any more information! Thank you,
Created attachment prevSetIgnore.jmx: Sample test plan attached to verify and show the issue |
@pmouawad (migrated from Bugzilla): Should be fixed by: Please test next nightly build and give your feedback. Regards |
@pmouawad (migrated from Bugzilla): pmouawad pushed a commit to branch master The following commit(s) were added to refs/heads/master by this push: commit 9841a2a
.../src/main/java/org/apache/jmeter/threads/JMeterThread.java | 9 ++++++--- |
mspingher (migrated from Bugzilla): Thanks for looking into this so quickly and providing an update! Thank you again, |
mspingher (migrated from Bugzilla): I tested the nightly build JMeter 5.4.1-SNAPSHOT 9841a2a and it worked when you have an HTTP Request sampler by itself and not inside a Transaction Controller. This may be a different issue but when you have that HTTP Request sampler that uses SamplerResult.setIgnore() inside a Transaction Controller with or without Generate Parent Sample checked, it will still show the Transaction Controller name in the View Results Tree as well as inside the JMeter results file. On JMeter 4.0 r1823414, this does not happen as it will ignore the Transaction Controller name and the HTTP Request sampler from showing up in the View Results Tree and JMeter results file. I've attached a screenshot to better explain what I mean, using the same sample test script I've previously attached. Let me know if you need any more information! Thank you, Created attachment prevSetIgnore.jpg: Transaction controller name appears on View Results Tree and JMeter results file when using Sampler.setIgnore() in JSR23 |
mspingher (migrated from Bugzilla): Any update on my last comment from 2020-12-19 23:02:07 UTC? Should I create a new bug ticket entry for the SamplerResult.setIgnore() not working while there is a Transaction Controller on the parent level? Thank you, |
@pmouawad (migrated from Bugzilla):
Hello, Thanks |
mspingher (Bug 65008):
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 (doesn't matter if the HTTP Request sampler is inside a Transaction Controller). The HTTP Request sampler still shows up in View Results Tree and in the JMeter results file.
JMeter version - 5.4
Java version - 1.8.0_251
OS version - Windows 10 64-Bit (Build 19041)
Reproduction Steps -
prev.setIgnore() works as intended on JMeter 4.0 r1823414.
OS: All
The text was updated successfully, but these errors were encountered: