Created attachment 32760 [details] JMeter script demonstrating the problem described in this report. In a test plan, there is a need to fire the logout step if login was successful no matter which intermediate step fails. In the test plan, the value of JMeterThread.last_sample_ok was used in an if-controller with 'Evaluate for all children' turned on so that any failing step inside the if-controller will skip the remaining steps. This technique works, however, when assertions fail inside this if-controller, they are not reported in the 'View Results Tree' as errors if 'Generate Parent Sample' is enabled. If these steps are not inside the above mentioned if-controller, they report correctly even if 'Generate Parent Sample' is enabled. Attached is an example JMeter script that demonstrates this problem stripped down and with URLs replaced with wikipedia.org. Running the script as posted, the 'View Results Tree' will only report logout. The failure inside the previous if-controller that caused an error (due to an assertion failure) is not reported. If the if-controller 'Run Things' is moved outside the test for JMeterThread.last_sample_ok, the error is reported correctly.
Issue is due to TransactionController in Parent Sample mode generation.
Errors should (and do in every other case) report to the View Results Tree regardless of the status of the Generate Parent Sample check-box.
Hi, I am not saying anything different, just pointing to root cause of your issue which is clearly due to a bug in TransactionController behaviour.
Created attachment 34989 [details] Test plan that reproduces this bug
Date: Thu May 11 18:02:25 2017 New Revision: 1794861 URL: http://svn.apache.org/viewvc?rev=1794861&view=rev Log: Bug 57958 - Fix transaction sample not generated if thread stops/restarts Added: jmeter/trunk/test/src/org/apache/jmeter/control/TestTransactionController.java Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java jmeter/trunk/xdocs/changes.xml Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java?rev=1794861&r1=1794860&r2=1794861&view=diff
Hello, Within Bug 61380, I changed a bit the fix here. Can you please test again nightly build to ensure there is no regression ? Thanks
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3599