You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/05/06 20:54:25 UTC

svn commit: r653883 - /jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java

Author: sebb
Date: Tue May  6 11:54:24 2008
New Revision: 653883

URL: http://svn.apache.org/viewvc?rev=653883&view=rev
Log:
Extract createTestElement() GUI update code into modifyTestElement()
UrlConfigGui is used as both standalone and embedded for which the latter is needed.

Modified:
    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java?rev=653883&r1=653882&r2=653883&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java Tue May  6 11:54:24 2008
@@ -131,6 +131,16 @@
 		ConfigTestElement element = new ConfigTestElement();
 
 		this.configureTestElement(element);
+		modifyTestElement(element);
+		return element;
+    }
+
+	/**
+	 * Save the GUI values in the sampler.
+	 * 
+	 * @param element
+	 */
+    public void modifyTestElement(TestElement element) {
 		Arguments args = (Arguments) argsPanel.createTestElement();
 
 		HTTPArgument.convertArgumentsToHTTP(args);
@@ -147,7 +157,6 @@
 			element.setProperty(new BooleanProperty(HTTPSamplerBase.USE_KEEPALIVE, useKeepAlive.isSelected()));
 	        element.setProperty(new BooleanProperty(HTTPSamplerBase.DO_MULTIPART_POST, useMultipartForPost.isSelected()));
 		}
-		return element;
 	}
 
 	/**



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