Created attachment 30288 [details] ResponseCode of TransactionSampler Default TransactionSampler don't have response code. This patch added this. Sets last succesful or first fault response code of child sampler.
Hello, Thanks for patch. Can you tell what is the impact of the issue that is fixed as my tests show that response code is set in TransactionController#setTransactionDone Did you notice a Case where Code is not set ? If yes could you provide a simple test plan showing issue ? Thanks
Created attachment 30332 [details] simple testplan
Created attachment 30333 [details] Set responseCode if transaction is successful
Created attachment 30334 [details] Set responseCode if transaction is failure and child sampler have bad responseCode
Created attachment 30335 [details] Set responseCode if transaction is failure and child sampler have exception
Every SampleResult have 2 field : successful and responseCode. TransactionController#setTransactionDone sets repsonceCode (200) only if transaction is successful. If transaction is failure, responseCode empty. This patch sets responseCode always. It's good way to determine real problem if you using transactions.
Date: Mon Jun 3 21:19:07 2013 New Revision: 1489182 URL: http://svn.apache.org/r1489182 Log: Bug 54985 - Make Transaction Controller set Response Code of Generated Parent Sampler to response code of first failing child in case of failure of one of its children Bugzilla Id: 54985 Modified: jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java jmeter/trunk/xdocs/changes.xml
Thanks for patch, useful as we have now have root cause of failure in parent sampler.
Thank you!:)
URL: http://svn.apache.org/r1490054 Log: Make Transaction Controller set Response Code of Generated Parent Sampler to response code of first failing child in case of failure of one of its children Bugzilla Id: 54985
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3124