Bug 64589

Summary: Failing Transaction Controller not reported in View Results Tree if it's inside an IfController with "Evaluate for all children" checked
Product: JMeter - Now in Github Reporter: karthik <karthiksurabathula>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEEDINFO ---    
Severity: normal CC: lionel.najman, p.mouawad
Priority: P2    
Version: 5.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Transaction Controller Issue Script sample
Minimal test case to reproduce the described behaviour

Description karthik 2020-07-09 13:27:15 UTC
Created attachment 37357 [details]
Transaction Controller Issue Script sample

Hi Team,

"Transaction controller" in "Generate Parent Sample" mode placed under "If Controller" not being reported if there is failure in any of requests.

I have to logout if there is any failure in proposed actions during test, for that i have used 2 if controllers to implement the logic. I am able to implement Logout on error but the Failed transaction controller is not being reported in either of listeners. 

I have attached sample script to replicate issue, script has 3 transactions
1. Login
2. Action - I have dummy sampler returning 500 response code fails assertion
3. Logout - I part of main loop and error logic

Login and Logout are being reported but Action is not.

I have found a similar bug from earlier which as lot of similarities. https://bz.apache.org/bugzilla/show_bug.cgi?id=57958

Could you please look into it.

Thanks & Regards,
Karthik S
Comment 1 karthik 2020-07-12 12:09:00 UTC
HI Team, 

Any feedback on the issue.

Thanks
Comment 2 Philippe Mouawad 2020-07-26 11:59:01 UTC
*** Bug 64354 has been marked as a duplicate of this bug. ***
Comment 3 Felix Schumacher 2020-08-16 19:45:53 UTC
Created attachment 37394 [details]
Minimal test case to reproduce the described behaviour

The original test plan used third party plugins and did more things then necessary to reproduce the behaviour.
Comment 4 Felix Schumacher 2020-08-16 19:49:50 UTC
I think, the OP could un-check "Evaluate for all children" on the if controller. That would probably help the described use case.

(Even though, there still seems to be a bug or at least weird behaviour exposed by the combination of "evaluate for all children" on the if controller and "generate parent sampler" on the transaction controller")
Comment 5 The ASF infrastructure team 2022-09-24 20:38:20 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5358