Getting empty thread name [tn=""] in a xml result file for a Redirect HTTP request, which causing problem in report analysis to list the group requests. Ex: See below result file and notice that rc="302" request and corresponding thread name <?xml version="1.0" encoding="UTF-8"?> <testResults version="1.2"> <httpSample t="1229" lt="1229" ts="1419228583134" s="true" lb="Login" rc="200" rm="OK" tn="CreateUserAccounts 1-1" dt="text" by="2836" ng="1" na="1"> <assertionResult> <name>Response Assertion</name> <failure>false</failure> <error>false</error> </assertionResult> </httpSample> <httpSample t="353" lt="353" ts="1419228584680" s="true" lb="Login Submit" rc="302" rm="Moved Temporarily" tn="CreateUserAccounts 1-1" dt="" by="454" ng="1" na="1"/> <httpSample t="561" lt="560" ts="1419228585341" s="true" lb="New Account" rc="200" rm="OK" tn="CreateUserAccounts 1-1" dt="text" by="4801" ng="1" na="1"/> <httpSample t="2372" lt="1362" ts="1419228586206" s="true" lb="New Account Submit" rc="200" rm="OK" tn="CreateUserAccounts 1-1" dt="text" by="5110" ng="1" na="1"> <httpSample t="1362" lt="1362" ts="1419228586206" s="true" lb="http://xxx.com/abc/administration/newaccount/submit" rc="302" rm="Moved Temporarily" tn="" dt="" by="233" ng="0" na="0"/> <httpSample t="998" lt="997" ts="1419228587580" s="true" lb="http://xxx.com/abc/administration/newaccount" rc="200" rm="OK" tn="CreateUserAccounts 1-1" dt="text" by="4877" ng="0" na="0"/> </httpSample> <httpSample t="258" lt="258" ts="1419228588582" s="true" lb="Logout" rc="302" rm="Moved Temporarily" tn="CreateUserAccounts 1-1" dt="" by="218" ng="1" na="1"/> </httpSample> </testResults> I think it will be good if we can display thread name for the redirect requests also, so that it will be easy in reporting to grouping requests in Reporting analysis
Looks like this only occurs for "Follow Redirects". Also the ng and na attributes are not initialised either.
Hi, Note that ng and na are equal to 0 on downloaded resources (if it is checked), debugging they do not look to be filled. Regards
Created attachment 32321 [details] Patch fixing issue
Thanks for the patch: URL: http://svn.apache.org/r1647416 Log: Getting empty thread name in xml result for HTTP requests with "Follow Redirects" set Bugzilla Id: 57835 Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3506