jakarta-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milam...@apache.org
Subject svn commit: r1169430 - in /jakarta/jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java xdocs/changes.xml
Date Sun, 11 Sep 2011 12:20:39 GMT
Author: milamber
Date: Sun Sep 11 12:20:39 2011
New Revision: 1169430

URL: http://svn.apache.org/viewvc?rev=1169430&view=rev
Log:
Bug 50424 - Web Methods drop down list box inconsistent

Modified:
    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java
    jakarta/jmeter/trunk/xdocs/changes.xml

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java?rev=1169430&r1=1169429&r2=1169430&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java
(original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java
Sun Sep 11 12:20:39 2011
@@ -176,7 +176,7 @@ public class WebServiceSamplerGui extend
     @Override
     public void clearGui() {
         super.clearGui();
-
+        wsdlMethods.setValues(new String[0]);
         domain.setText(""); //$NON-NLS-1$
         protocol.setText(""); //$NON-NLS-1$
         port.setText(""); //$NON-NLS-1$
@@ -262,6 +262,10 @@ public class WebServiceSamplerGui extend
         super.configure(el);
         WebServiceSampler sampler = (WebServiceSampler) el;
         wsdlField.setText(sampler.getWsdlURL());
+        final String wsdlText = wsdlField.getText();
+        if (wsdlText != null && wsdlText.length() > 0) {
+            fillWsdlMethods(wsdlField.getText());
+        }
         protocol.setText(sampler.getProtocol());
         domain.setText(sampler.getDomain());
         port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT));
@@ -361,11 +365,7 @@ public class WebServiceSamplerGui extend
         } else if (eventSource == wsdlButton){
             final String wsdlText = wsdlField.getText();
             if (wsdlText != null && wsdlText.length() > 0) {
-                String[] wsdlData = browseWSDL(wsdlText);
-                if (wsdlData != null) {
-                    wsdlMethods.setValues(wsdlData);
-                    wsdlMethods.repaint();
-                }
+                fillWsdlMethods(wsdlText);
             } else {
                 JOptionPane.showConfirmDialog(this,
                         JMeterUtils.getResString("wsdl_url_error"), // $NON-NLS-1$
@@ -375,4 +375,15 @@ public class WebServiceSamplerGui extend
         }
     }
 
+    /**
+     * @param wsdlText
+     */
+    private void fillWsdlMethods(final String wsdlText) {
+        String[] wsdlData = browseWSDL(wsdlText);
+        if (wsdlData != null) {
+            wsdlMethods.setValues(wsdlData);
+            wsdlMethods.repaint();
+        }
+    }
+
 }

Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=1169430&r1=1169429&r2=1169430&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Sun Sep 11 12:20:39 2011
@@ -75,6 +75,7 @@ This can be overridden by setting the JM
 
 <h3>Other Samplers</h3>
 <ul>
+<li>Bug 50424 - Web Methods drop down list box inconsistent</li>
 </ul>
 
 <h3>Controllers</h3>



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


Mime
View raw message