Bug 48709

Summary: TCP Sampler Config setting "classname" has no effect
Product: JMeter - Now in Github Reporter: Andrey Pohilko <apc>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Screenshot of TCP Config

Description Andrey Pohilko 2010-02-09 01:29:44 UTC

    
Comment 1 Andrey Pohilko 2010-02-09 01:32:46 UTC
Sorry, occasional Enter...

The issue is: when I define classname in Config, it does not applied in TCP Samplers. All other options works fine. I have to define classname in each sampler.

I expected that I define classname in Config and leave it empty in all TCP Samplers and all samplers use Config setting as Host or Port fields do.
Comment 2 Andrey Pohilko 2010-02-09 01:33:56 UTC
Created attachment 24950 [details]
Screenshot of TCP Config
Comment 3 Sebb 2010-06-28 15:08:25 UTC
Thanks for the report.

The classname is referenced in the threadStarted() method, which is called before the TCP config items are merged in. Other TCP config fields are referenced in the sample() method which is processed after the merge.

Fixed by doing the setup in the first sample call. 
A bit messy, but should work...

URL: http://svn.apache.org/viewvc?rev=958685&view=rev
Log:
Bug 48709 - TCP Sampler Config setting "classname" has no effect

Modified:
   jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 4 The ASF infrastructure team 2022-09-24 20:37:44 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2338