Bug 57385 - Getting empty thread name in xml result for HTTP requests with "Follow Redirects" set
Summary: Getting empty thread name in xml result for HTTP requests with "Follow Redire...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.11
Hardware: All All
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-22 08:14 UTC by ashok
Modified: 2014-12-22 21:37 UTC (History)
2 users (show)



Attachments
Patch fixing issue (2.61 KB, patch)
2014-12-22 20:49 UTC, UbikLoadPack support
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ashok 2014-12-22 08:14:40 UTC
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
Comment 1 Sebb 2014-12-22 19:59:11 UTC
Looks like this only occurs for "Follow Redirects".
Also the ng and na attributes are not initialised either.
Comment 2 UbikLoadPack support 2014-12-22 20:45:24 UTC
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
Comment 3 UbikLoadPack support 2014-12-22 20:49:16 UTC
Created attachment 32321 [details]
Patch fixing issue
Comment 4 Sebb 2014-12-22 21:37:38 UTC
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