Bug 43293 - Java Request fields not cleared when creating new sampler
Java Request fields not cleared when creating new sampler
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
unspecified
Other other
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-09-03 03:41 UTC by Sebb
Modified: 2011-09-11 13:09 UTC (History)
1 user (show)



Attachments
Implementation of clearGui in JavaTestSamplerGui and JavaConfigGui (1.51 KB, patch)
2011-09-11 11:34 UTC, Philippe Mouawad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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