Author: sebb Date: Tue Jul 15 19:45:35 2008 New Revision: 677136 URL: http://svn.apache.org/viewvc?rev=677136&view=rev Log: Added __char() function: allows arbitrary Unicode characters to be entered in fields.
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jakarta/jmeter/trunk/xdocs/changes.xml jakarta/jmeter/trunk/xdocs/usermanual/functions.xml Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties?rev=677136&r1=677135&r2=677136&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties (original) +++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties Tue Jul 15 19:45:35 2008 @@ -108,6 +108,7 @@ cancel_revert_project=There are test items that have not been saved. Do you wish to revert to the previously saved test plan? cancel_exit_to_save=There are test items that have not been saved. Do you wish to save before exiting? cancel_new_to_save=There are test items that have not been saved. Do you wish to save before clearing the test plan? +char_value=Unicode character number (decimal or 0xhex) choose_function=Choose a function choose_language=Choose Language clear=Clear Modified: jakarta/jmeter/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=677136&r1=677135&r2=677136&view=diff ============================================================================== --- jakarta/jmeter/trunk/xdocs/changes.xml (original) +++ jakarta/jmeter/trunk/xdocs/changes.xml Tue Jul 15 19:45:35 2008 @@ -44,6 +44,7 @@ <h4>Improvements</h4> <p> <ul> +Added __char() function: allows arbitrary Unicode characters to be entered in fields. </ul> </p> Modified: jakarta/jmeter/trunk/xdocs/usermanual/functions.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/functions.xml?rev=677136&r1=677135&r2=677136&view=diff ============================================================================== --- jakarta/jmeter/trunk/xdocs/usermanual/functions.xml (original) +++ jakarta/jmeter/trunk/xdocs/usermanual/functions.xml Tue Jul 15 19:45:35 2008 @@ -110,6 +110,7 @@ <tr><td>Variables</td><td> <a href="#__V">V</a></td><td>evaluate a variable name</td></tr> <tr><td>Variables</td><td> <a href="#__eval">eval</a></td><td>evaluate a variable expression</td></tr> <tr><td>Variables</td><td> <a href="#__evalVar">evalVar</a></td><td>evaluate an expression stored in a variable</td></tr> + <tr><td>Other</td><td> <a href="#__char">char</a></td><td>generate Unicode char values from a list of numbers</td></tr> </table> <p></p> <subsection name="§-num;.1 What can functions do" anchor="what_can_do"> @@ -955,6 +956,28 @@ </properties> </component> +<component index="§-num;.5.22" name="__char"> +<description> + <p>The char function returns the result of evaluating a list of numbers as Unicode characters. + </p> + <p> + This allows one to add any character values into fields. + </p> + </description> + +<properties> + <property name="Unicode character number (decimal or 0xhex)" required="Yes"> + The decimal number (or hex number, if prefixed by 0x) to be converted to a Unicode character. + </property> +</properties> +<p>Examples: +<br/> +${__char(0xC,0xA)} = CRLF; +<br/> +${__char(165)} = ¥ (yen) + </p> +</component> + </subsection> <subsection name="§-num;.6 Pre-defined Variables" anchor="predefinedvars"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]