Bug 43293

Summary: Java Request fields not cleared when creating new sampler
Product: JMeter Reporter: Sebb <sebb>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Implementation of clearGui in JavaTestSamplerGui and JavaConfigGui

Description Sebb 2007-09-03 03:41:52 UTC
The Java Request Sampler fields are not reset to the default when creating a 
second sampler.

This was fixed for other GUI elements when the clear() methods were split into 
clearGui() and clearData()
Comment 1 Philippe Mouawad 2011-09-11 11:34:52 UTC
Created attachment 27482 [details]
Implementation of clearGui in JavaTestSamplerGui and JavaConfigGui

Hello,
Bug scenario:
1) Create a Thread group
2) Add a Java Sampler and fill its data
3) Add a new one, all its values are taken from the previous

Other scenario:
1) Create a Thread group
2) Add a Java Sampler and fill its data
3) Remove it
4) Add a new one, its value are taken from deleted one

The patch fixes the issue.
Regards
Philippe Mouawad
Comment 2 Milamber 2011-09-11 13:09:38 UTC
Thanks for patch. Applied.

URL: http://svn.apache.org/viewvc?rev=1169445&view=rev
Log:
Bug 43293 - Java Request fields not cleared when creating new sampler

Modified:
    jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/config/gui/JavaConfigGui.java
    jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/JavaTestSamplerGui.java
    jakarta/jmeter/trunk/xdocs/changes.xml