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 2007/03/15 02:03:27 UTC
svn commit: r518409 -
/jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/functions.xml
Author: sebb
Date: Wed Mar 14 18:03:26 2007
New Revision: 518409
URL: http://svn.apache.org/viewvc?view=rev&rev=518409
Log:
Clarify comma escaping
Modified:
jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/functions.xml
Modified: jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/functions.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/functions.xml?view=diff&rev=518409&r1=518408&r2=518409
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/functions.xml (original)
+++ jakarta/jmeter/branches/rel-2-2/xdocs/usermanual/functions.xml Wed Mar 14 18:03:26 2007
@@ -125,9 +125,21 @@
<p>Built-in functions are written in the same manner, but by convention, the names of built-in
functions begin with "__" to avoid conflict with user value names<sup>*</sup>. Some functions take arguments to
configure them, and these go in parentheses, comma-delimited. If the function takes no arguments, the parentheses can
-be left out. A further complication for argument values that themselves contain commas is that the value
-should be escaped as necessary. Thus, if you need to include a comma in your parameter value, escape it like so: '\,'. JMeter provides a tool to help you construct
-function calls for various built-in functions, which you can then copy-paste. It will not automatically escape values for you, since functions can be parameters to other functions, and you should only escape values you intend as literal.</p>
+be left out.</p>
+
+<p>Argument values that themselves contain commas should be escaped as necessary.
+If you need to include a comma in your parameter value, escape it like so: '\,'.
+This applies for example to the scripting functions - Javascript, Beanshell, Jexl - where it is necessary to escape any commas
+that may be needed in script method calls - e.g.
+</p>
+<pre>
+ ${__BeanShell(vars.put("name"\,"value"))}
+</pre>
+<p>
+JMeter provides a tool to help you construct
+function calls for various built-in functions, which you can then copy-paste.
+It will not automatically escape values for you, since functions can be parameters to other functions, and you should only escape values you intend as literal.</p>
+
<note><sup>*</sup>If you define a user-defined static variable with the same name as a built-in function, your static
variable will override the built-in function.</note>
</subsection>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org