ASF Bugzilla – Attachment 20129 Details for
Bug 40077
Creating new Elements copies values from Existing elements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated suggested patch
patch_for_40077_2.patch (text/plain), 42.45 KB, created by
Alf Hogemark
on 2007-05-04 02:13:45 UTC
(
hide
)
Description:
Updated suggested patch
Filename:
MIME Type:
Creator:
Alf Hogemark
Created:
2007-05-04 02:13:45 UTC
Size:
42.45 KB
patch
obsolete
>Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java (working copy) >@@ -61,6 +61,11 @@ > public HeaderManager() { > setProperty(new CollectionProperty(HEADERS, new ArrayList())); > } >+ >+ public void clear() { >+ super.clear(); >+ setProperty(new CollectionProperty(HEADERS, new ArrayList())); >+ } > > public CollectionProperty getHeaders() { > return (CollectionProperty) getProperty(HEADERS); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java (working copy) >@@ -140,6 +140,8 @@ > public void clear() { > super.clear(); > getImages.setSelected(false); >+ isMon.setSelected(false); > urlConfigGui.clear(); >+ embeddedRE.setText(""); // $NON-NLS-1$ > } > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java (working copy) >@@ -190,6 +190,29 @@ > sampler.setProxyPort(proxyPort.getText()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ domain.setText(""); //$NON-NLS-1$ >+ protocol.setText(""); //$NON-NLS-1$ >+ port.setText(""); //$NON-NLS-1$ >+ path.setText(""); //$NON-NLS-1$ >+ soapAction.setText(""); //$NON-NLS-1$ >+ soapXml.setText(""); //$NON-NLS-1$ >+ wsdlField.setText(""); //$NON-NLS-1$ >+ randomXmlFile.setText(""); //$NON-NLS-1$ >+ connectTimeout.setText(""); //$NON-NLS-1$ >+ proxyHost.setText(""); //$NON-NLS-1$ >+ proxyPort.setText(""); //$NON-NLS-1$ >+ memCache.setSelected(true); >+ readResponse.setSelected(false); >+ useProxy.setSelected(false); >+ soapXmlFile.setFilename(""); //$NON-NLS-1$ >+ } >+ > /** > * init() adds soapAction to the mainPanel. The class reuses logic from > * SOAPSampler, since it is common. >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java (working copy) >@@ -82,6 +82,19 @@ > } > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ urlField.setText(""); //$NON-NLS-1$ >+ soapAction.setText(""); //$NON-NLS-1$ >+ soapXml.setText(""); //$NON-NLS-1$ >+ sendSoapAction.setSelected(true); >+ soapXmlFile.setFilename(""); //$NON-NLS-1$ >+ } >+ > private void init() { > setLayout(new BorderLayout()); > setBorder(makeBorder()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java (working copy) >@@ -109,6 +109,17 @@ > configureTestElement(el); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ tableModel.clearData(); >+ deleteButton.setEnabled(false); >+ saveButton.setEnabled(false); >+ } >+ > public void configure(TestElement el) { > super.configure(el); > tableModel.manager.clear(); >@@ -279,6 +290,11 @@ > public InnerTableModel() { > manager = new AuthManager(); > } >+ >+ public void clearData() { >+ manager.clear(); >+ fireTableDataChanged(); >+ } > > public void removeRow(int row) { > manager.remove(row); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/HeaderPanel.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/HeaderPanel.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/HeaderPanel.java (working copy) >@@ -99,6 +99,17 @@ > configureTestElement(el); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ tableModel.clearData(); >+ deleteButton.setEnabled(false); >+ saveButton.setEnabled(false); >+ } >+ > public void configure(TestElement el) { > headerManager.clear(); > super.configure(el); >@@ -259,6 +270,11 @@ > manager = man; > } > >+ public void clearData() { >+ manager.clear(); >+ fireTableDataChanged(); >+ } >+ > public void removeRow(int row) { > manager.remove(row); > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java (working copy) >@@ -243,6 +243,19 @@ > } > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ tableModel.clearData(); >+ clearEachIteration.setSelected(false); >+ policy.setSelectedIndex(policies.length - 1); >+ deleteButton.setEnabled(false); >+ saveButton.setEnabled(false); >+ } >+ > private Cookie createCookie(Object[] rowData) { > Cookie cookie = new Cookie( > (String) rowData[0], >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java (working copy) >@@ -89,6 +89,20 @@ > } > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ protocol.setText(""); //$NON-NLS-1$ >+ domain.setText(""); //$NON-NLS-1$ >+ path.setText(""); //$NON-NLS-1$ >+ port.setText(""); //$NON-NLS-1$ >+ argPanel.clear(); >+ imageParser.setSelected(false); >+ } >+ > public void configure(TestElement el) { > super.configure(el); > protocol.setText(el.getPropertyAsString(HTTPSamplerBase.PROTOCOL)); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/control/gui/LdapTestSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/control/gui/LdapTestSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/control/gui/LdapTestSamplerGui.java (working copy) >@@ -75,7 +75,17 @@ > ((LDAPSampler) sampler).addTestElement(loginPanel.createTestElement()); > this.configureTestElement(sampler); > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); > >+ ldapDefaultPanel.clear(); >+ loginPanel.clear(); >+ } >+ > public String getLabelResource() { > return "ldap_testing_title"; > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/control/gui/LdapExtTestSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/control/gui/LdapExtTestSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/control/gui/LdapExtTestSamplerGui.java (working copy) >@@ -78,6 +78,15 @@ > this.configureTestElement(sampler); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ ldapDefaultPanel.clear(); >+ } >+ > public String getLabelResource() { > return "ldapext_testing_title"; // $NON-NLS-1$ > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java (working copy) >@@ -187,6 +187,27 @@ > } > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ rootdn.setText(""); //$NON-NLS-1$ >+ searchbase.setText(""); //$NON-NLS-1$ >+ searchfilter.setText(""); //$NON-NLS-1$ >+ delete.setText(""); //$NON-NLS-1$ >+ add.setText(""); //$NON-NLS-1$ >+ modify.setText(""); //$NON-NLS-1$ >+ servername.setText(""); //$NON-NLS-1$ >+ port.setText(""); //$NON-NLS-1$ >+ user_Defined.setSelected(false); >+ addTest.setSelected(false); >+ modifyTest.setSelected(false); >+ deleteTest.setSelected(false); >+ searchTest.setSelected(false); >+ } >+ > /** > * This itemStateChanged listener for changing the card layout for based on\ > * the test selected in the User defined test case. >@@ -197,30 +218,38 @@ > if (addTest.isSelected()) { > cl.show(cards, "Add"); > tableModifyPanel.clear(); >+ modify.setText(""); > searchbase.setText(""); > searchfilter.setText(""); > delete.setText(""); > } else if (deleteTest.isSelected()) { > cl.show(cards, "Delete"); > tableModifyPanel.clear(); >+ modify.setText(""); > tableAddPanel.clear(); >+ add.setText(""); > searchbase.setText(""); > searchfilter.setText(""); > } else if (searchTest.isSelected()) { > cl.show(cards, "Search"); > delete.setText(""); > tableModifyPanel.clear(); >+ modify.setText(""); > tableAddPanel.clear(); >+ add.setText(""); > } else if (modifyTest.isSelected()) { > cl.show(cards, "Modify"); > tableAddPanel.clear(); >+ add.setText(""); > searchbase.setText(""); > searchfilter.setText(""); > delete.setText(""); > } else { > cl.show(cards, ""); > tableAddPanel.clear(); >+ add.setText(""); > tableModifyPanel.clear(); >+ modify.setText(""); > searchbase.setText(""); > searchfilter.setText(""); > delete.setText(""); >@@ -228,7 +257,9 @@ > } else { > cl.show(cards, ""); > tableAddPanel.clear(); >+ add.setText(""); > tableModifyPanel.clear(); >+ modify.setText(""); > searchbase.setText(""); > searchfilter.setText(""); > delete.setText(""); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ldap/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java (working copy) >@@ -308,7 +308,51 @@ > element.setProperty(new StringProperty(LDAPExtSampler.TEST, LDAPExtSampler.UNBIND)); > } > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ rootdn.setText(""); //$NON-NLS-1$ >+ searchbase.setText(""); //$NON-NLS-1$ >+ searchfilter.setText(""); //$NON-NLS-1$ >+ delete.setText(""); //$NON-NLS-1$ >+ add.setText(""); //$NON-NLS-1$ >+ modify.setText(""); //$NON-NLS-1$ >+ servername.setText(""); //$NON-NLS-1$ >+ port.setText(""); //$NON-NLS-1$ >+ add.setText(""); //$NON-NLS-1$ >+ scope.setSelectedIndex(SCOPE_STRINGS.length - 1); >+ countlim.setText(""); //$NON-NLS-1$ >+ timelim.setText(""); //$NON-NLS-1$ >+ attribs.setText(""); //$NON-NLS-1$ >+ userdn.setText(""); //$NON-NLS-1$ >+ userpw.setText(""); //$NON-NLS-1$ >+ comparedn.setText(""); //$NON-NLS-1$ >+ comparefilt.setText(""); //$NON-NLS-1$ >+ modddn.setText(""); //$NON-NLS-1$ >+ newdn.setText(""); //$NON-NLS-1$ >+ connto.setText(""); //$NON-NLS-1$ >+ retobj.setSelected(false); >+ deref.setSelected(false); >+ parseflag.setSelected(false); >+ secure.setSelected(false); >+ addTest.setSelected(false); >+ modifyTest.setSelected(false); >+ deleteTest.setSelected(false); >+ searchTest.setSelected(false); >+ bind.setSelected(false); >+ rename.setSelected(false); >+ unbind.setSelected(false); >+ sbind.setSelected(false); >+ compare.setSelected(false); > >+ tableAddPanel.clear(); >+ tableModifyPanel.clear(); >+ } >+ > /*************************************************************************** > * This itemStateChanged listener for changing the card layout for based on > * the test selected in the User defined test case. >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/URLRewritingModifierGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/URLRewritingModifierGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/URLRewritingModifierGui.java (working copy) >@@ -104,6 +104,19 @@ > rewritingModifier.setShouldCache((shouldCache.isSelected())); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ argumentName.setText(""); //$NON-NLS-1$ >+ pathExt.setSelected(false); >+ pathExtNoEquals.setSelected(false); >+ pathExtNoQuestionmark.setSelected(false); >+ shouldCache.setSelected(false); >+ } >+ > public void configure(TestElement el) { > URLRewritingModifier rewritingModifier = ((URLRewritingModifier) el); > argumentName.setText(rewritingModifier.getArgumentName()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/UserParameterModifierGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/UserParameterModifierGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/UserParameterModifierGui.java (working copy) >@@ -68,6 +68,14 @@ > this.configureTestElement(mod); > ((UserParameterModifier) mod).setXmlUri(fileNameField.getText()); > } >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ fileNameField.setText("users.xml"); //$NON-NLS-1$ >+ } > > public void updateGui() { > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/ParamModifierGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/ParamModifierGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/ParamModifierGui.java (working copy) >@@ -106,6 +106,20 @@ > mask.setSuffix(_suffix.getText()); > } > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ _fieldName.setText(""); //$NON-NLS-1$ >+ _prefix.setText(""); //$NON-NLS-1$ >+ _lowerBound.setText("0"); //$NON-NLS-1$ >+ _upperBound.setText("10"); //$NON-NLS-1$ >+ _increment.setText("1"); //$NON-NLS-1$ >+ _suffix.setText(""); //$NON-NLS-1$ >+ } > > public void focusGained(FocusEvent evt) { > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BSFSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BSFSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BSFSamplerGui.java (working copy) >@@ -78,6 +79,18 @@ > te.setProperty(BSFSampler.PARAMETERS, parameters.getText()); > te.setProperty(BSFSampler.SCRIPT, scriptField.getText()); > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ scriptField.setText(""); //$NON-NLS-1$ >+ langField.setText(""); //$NON-NLS-1$ >+ filename.setText(""); //$NON-NLS-1$ >+ parameters.setText(""); //$NON-NLS-1$ >+ } > > public String getLabelResource() { > return "bsf_sampler_title"; >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java (working copy) >@@ -73,6 +73,17 @@ > te.setProperty(BeanShellSampler.FILENAME, filename.getText()); > te.setProperty(BeanShellSampler.PARAMETERS, parameters.getText()); > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ filename.setText(""); //$NON-NLS-1$ >+ parameters.setText(""); //$NON-NLS-1$ >+ scriptField.setText(""); //$NON-NLS-1$ >+ } > > public String getLabelResource() { > return "bsh_sampler_title"; >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/tcp/org/apache/jmeter/protocol/tcp/control/gui/TCPSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/tcp/org/apache/jmeter/protocol/tcp/control/gui/TCPSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/tcp/org/apache/jmeter/protocol/tcp/control/gui/TCPSamplerGui.java (working copy) >@@ -66,6 +66,16 @@ > this.configureTestElement(sampler); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ TcpDefaultPanel.clear(); >+ loginPanel.clear(); >+ } >+ > public String getLabelResource() { > return "tcp_sample_title"; > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java (working copy) >@@ -112,6 +112,20 @@ > element.setProperty(TCPSampler.REQUEST, requestData.getText()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ server.setText(""); //$NON-NLS-1$ >+ port.setText(""); //$NON-NLS-1$ >+ timeout.setText(""); //$NON-NLS-1$ >+ requestData.setText(""); //$NON-NLS-1$ >+ reUseConnection.setSelected(true); >+ setNoDelay.setSelected(false); >+ } >+ > private JPanel createTimeoutPanel() { > JLabel label = new JLabel(JMeterUtils.getResString("tcp_timeout")); > >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ftp/org/apache/jmeter/protocol/ftp/control/gui/FtpTestSamplerGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ftp/org/apache/jmeter/protocol/ftp/control/gui/FtpTestSamplerGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ftp/org/apache/jmeter/protocol/ftp/control/gui/FtpTestSamplerGui.java (working copy) >@@ -67,6 +67,16 @@ > this.configureTestElement(sampler); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ ftpDefaultPanel.clear(); >+ loginPanel.clear(); >+ } >+ > public String getLabelResource() { > return "ftp_testing_title"; > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ftp/org/apache/jmeter/protocol/ftp/config/gui/FtpConfigGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ftp/org/apache/jmeter/protocol/ftp/config/gui/FtpConfigGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/ftp/org/apache/jmeter/protocol/ftp/config/gui/FtpConfigGui.java (working copy) >@@ -99,6 +99,21 @@ > element.setProperty(FTPSampler.UPLOAD_FILE,putBox.isSelected()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ server.setText(""); //$NON-NLS-1$ >+ remoteFile.setText(""); //$NON-NLS-1$ >+ localFile.setText(""); //$NON-NLS-1$ >+ binaryMode.setSelected(false); >+ saveResponseData.setSelected(false); >+ getBox.setSelected(true); >+ putBox.setSelected(false); >+ } >+ > private JPanel createServerPanel() { > JLabel label = new JLabel(JMeterUtils.getResString("server")); > >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/UserParametersGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/UserParametersGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/UserParametersGui.java (working copy) >@@ -129,6 +129,17 @@ > super.configureTestElement(params); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ initTableModel(); >+ paramTable.setModel(tableModel); >+ perIterationCheck.setSelected(false); >+ } >+ > private void init() { > setBorder(makeBorder()); > setLayout(new BorderLayout()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/CounterConfigGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/CounterConfigGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/CounterConfigGui.java (working copy) >@@ -73,6 +73,20 @@ > } > super.configureTestElement(c); > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ startField.setText(""); //$NON-NLS-1$ >+ incrField.setText(""); //$NON-NLS-1$ >+ endField.setText(""); //$NON-NLS-1$ >+ varNameField.setText(""); //$NON-NLS-1$ >+ formatField.setText(""); //$NON-NLS-1$ >+ perUserField.setSelected(false); >+ } > > public void configure(TestElement element) { > super.configure(element); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/sampler/gui/TestActionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/sampler/gui/TestActionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/sampler/gui/TestActionGui.java (working copy) >@@ -128,6 +128,22 @@ > ta.setDuration(duration); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ targetBox.setSelectedIndex(0); >+ durationField.setText(""); //$NON-NLS-1$ >+ pauseButton.setSelected(true); >+ stopButton.setSelected(false); >+ action = TestAction.PAUSE; >+ target = TestAction.THREAD; >+ duration = 0; >+ >+ } >+ > private void init() { > setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); > setBorder(makeBorder()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java (working copy) >@@ -138,6 +138,22 @@ > ((HTMLAssertion) inElement).setFilename(filePanel.getFilename()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ docTypeBox.setSelectedIndex(0); >+ htmlRadioButton.setSelected(true); >+ xhtmlRadioButton.setSelected(false); >+ xmlRadioButton.setSelected(false); >+ errorThresholdField.setText("0"); //$NON-NLS-1$ >+ warningThresholdField.setText("0"); //$NON-NLS-1$ >+ filePanel.setFilename(""); //$NON-NLS-1$ >+ errorsOnly.setSelected(false); >+ } >+ > /** > * Configures the associated test element. > * >@@ -161,6 +177,10 @@ > warningThresholdField.setEnabled(false); > warningThresholdField.setEditable(false); > } >+ else { >+ warningThresholdField.setEnabled(true); >+ warningThresholdField.setEditable(true); >+ } > filePanel.setFilename(lAssertion.getFilename()); > } > >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathAssertionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathAssertionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathAssertionGui.java (working copy) >@@ -116,4 +116,16 @@ > assertion.setXPathString(xpath.getXPath()); > } > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ xpath.setXPath("/"); //$NON-NLS-1$ >+ xpath.setNegated(false); >+ >+ xml.setDefaultValues(); >+ } > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/DurationAssertionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/DurationAssertionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/DurationAssertionGui.java (working copy) >@@ -68,6 +68,15 @@ > el.setProperty(DurationAssertion.DURATION_KEY,duration.getText()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ duration.setText(""); //$NON-NLS-1$ >+ } >+ > public void configure(TestElement el) { > super.configure(el); > duration.setText(el.getPropertyAsString(DurationAssertion.DURATION_KEY)); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (working copy) >@@ -68,6 +68,7 @@ > */ > public XPathPanel(boolean isDoubleBuffered) { > super(isDoubleBuffered); >+ init(); > } > > /** >@@ -75,6 +76,7 @@ > */ > public XPathPanel(LayoutManager layout) { > super(layout); >+ init(); > } > > /** >@@ -83,7 +85,7 @@ > */ > public XPathPanel(LayoutManager layout, boolean isDoubleBuffered) { > super(layout, isDoubleBuffered); >- >+ init(); > } > > private void init() { >@@ -99,8 +101,15 @@ > vbox.add(getNegatedCheckBox()); > > add(vbox); >+ >+ setDefaultValues(); > } > >+ public void setDefaultValues() { >+ setXPath("/"); //$NON-NLS-1$ >+ setNegated(false); >+ } >+ > /** > * Get the XPath String > * >@@ -170,7 +179,6 @@ > public JTextField getXPathTextField() { > if (xpath == null) { > xpath = new JTextField(50); >- xpath.setText("/"); //$NON-NLS-1$ > } > return xpath; > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLConfPanel.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLConfPanel.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLConfPanel.java (working copy) >@@ -51,8 +51,16 @@ > add(getNamespace()); > add(getValidate()); > add(getWhitespace()); >+ setDefaultValues(); > } > >+ public void setDefaultValues() { >+ setWhitespace(false); >+ setValidate(false); >+ setTolerant(false); >+ setNamespace(false); >+ } >+ > /** > * @return Returns the namespace. > */ >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/MD5HexAssertionGUI.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/MD5HexAssertionGUI.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/MD5HexAssertionGUI.java (working copy) >@@ -102,4 +102,13 @@ > } > ((MD5HexAssertion) element).setAllowedMD5Hex(md5HexString); > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ md5HexInput.setText(""); //$NON-NLS-1$ >+ } > } >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/SizeAssertionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/SizeAssertionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/SizeAssertionGui.java (working copy) >@@ -84,6 +84,22 @@ > ((SizeAssertion) el).setAllowedSize(assertionSize); > ((SizeAssertion) el).setCompOper(getState()); > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ size.setText(""); //$NON-NLS-1$ >+ equalButton.setSelected(true); >+ notequalButton.setSelected(false); >+ greaterthanButton.setSelected(false); >+ lessthanButton.setSelected(false); >+ greaterthanequalButton.setSelected(false); >+ lessthanequalButton.setSelected(false); >+ execState = SizeAssertion.EQUAL; >+ } > > public void configure(TestElement el) { > super.configure(el); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/AssertionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/AssertionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/AssertionGui.java (working copy) >@@ -160,7 +160,27 @@ > } > } > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ tableModel.clearData(); > >+ responseStringButton.setSelected(true); >+ urlButton.setSelected(false); >+ responseCodeButton.setSelected(false); >+ responseMessageButton.setSelected(false); >+ assumeSuccess.setSelected(false); >+ >+ containsBox.setSelected(true); >+ matchesBox.setSelected(false); >+ equalsBox.setSelected(false); >+ notBox.setSelected(false); >+ } >+ > /** > * A newly created component can be initialized with the contents of a Test > * Element object by calling this method. The component is responsible for >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLSchemaAssertionGUI.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLSchemaAssertionGUI.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLSchemaAssertionGUI.java (working copy) >@@ -81,6 +81,15 @@ > ((XMLSchemaAssertion) inElement).setXsdFileName(xmlSchema.getText()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ xmlSchema.setText(""); //$NON-NLS-1$ >+ } >+ > /** > * Configures the GUI from the associated test element. > * >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/XPathExtractorGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/XPathExtractorGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/XPathExtractorGui.java (working copy) >@@ -88,6 +88,18 @@ > } > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ xpathQueryField.setText(""); // $NON-NLS-1$ >+ defaultField.setText(""); // $NON-NLS-1$ >+ refNameField.setText(""); // $NON-NLS-1$ >+ tolerant.setSelected(false); >+ } >+ > private void init() { > setLayout(new BorderLayout()); > setBorder(makeBorder()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/RegexExtractorGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/RegexExtractorGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/RegexExtractorGui.java (working copy) >@@ -108,6 +108,23 @@ > regex.setMatchNumber(matchNumberField.getText()); > } > } >+ >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ useBody.setSelected(true); >+ useHeaders.setSelected(false); >+ useURL.setSelected(false); >+ >+ regexField.setText(""); //$NON-NLS-1$ >+ templateField.setText(""); //$NON-NLS-1$ >+ defaultField.setText(""); //$NON-NLS-1$ >+ refNameField.setText(""); //$NON-NLS-1$ >+ matchNumberField.setText(""); //$NON-NLS-1$ >+ } > > private void init() { > setLayout(new BorderLayout()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultActionGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultActionGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultActionGui.java (working copy) >@@ -76,6 +76,15 @@ > ((OnErrorTestElement) te).setErrorAction(errorPanel.getOnErrorSetting()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ errorPanel.configure(OnErrorTestElement.ON_ERROR_CONTINUE); >+ } >+ > private void init() { > setLayout(new BorderLayout()); > setBorder(makeBorder()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultSaverGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultSaverGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultSaverGui.java (working copy) >@@ -85,6 +85,16 @@ > te.setProperty(ResultSaver.ERRORS_ONLY, errorsOnly.isSelected()); > } > >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ filename.setText(""); //$NON-NLS-1$ >+ errorsOnly.setSelected(false); >+ } >+ > private void init() { > setLayout(new BorderLayout()); > setBorder(makeBorder()); >Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/config/gui/LoginConfigGui.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/config/gui/LoginConfigGui.java (revision 534327) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/config/gui/LoginConfigGui.java (working copy) >@@ -107,6 +108,15 @@ > String passwordString = new String(password.getPassword()); > element.setProperty(new StringProperty(ConfigTestElement.PASSWORD, passwordString)); > } >+ /** >+ * Implements JMeterGUIComponent.clear >+ */ >+ public void clear() { >+ super.clear(); >+ >+ username.setText(""); //$NON-NLS-1$ >+ password.setText(""); //$NON-NLS-1$ >+ } > > /** > * Initialize the components and layout of this component.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40077
:
20119
| 20129