You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2013/07/19 22:15:13 UTC
svn commit: r1504996 - /jmeter/trunk/xdocs/usermanual/best-practices.xml
Author: pmouawad
Date: Fri Jul 19 20:15:12 2013
New Revision: 1504996
URL: http://svn.apache.org/r1504996
Log:
Clarify documentation after introduction of caching for inline scripts
Modified:
jmeter/trunk/xdocs/usermanual/best-practices.xml
Modified: jmeter/trunk/xdocs/usermanual/best-practices.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/usermanual/best-practices.xml?rev=1504996&r1=1504995&r2=1504996&view=diff
==============================================================================
--- jmeter/trunk/xdocs/usermanual/best-practices.xml (original)
+++ jmeter/trunk/xdocs/usermanual/best-practices.xml Fri Jul 19 20:15:12 2013
@@ -325,12 +325,14 @@ The appropriate property file can be pas
<section name="§-num;.11 JSR223 Elements" anchor="jsr223">
<p>
-When using JSR 223 elements, prefer script file to inline script as JMeter will compile script (if underlying language supports it) which will avoid parsing it each
-time it is executed and will highly improve performances of Test Plan.
+When using JSR 223 elements, always set caching key to a unique value to ensure the script compilation is cached if underlying language supports it.
+Ensure the script does not use any variable using ${varName} as caching would take only first value of ${varName}. Instead use :
+<code>
+vars.get("varName")
+</code>
</p>
<p>
-In this case, don't use any User Defined variable or variable you create directly in the script file, instead pass these as Parameters to
-the script and use them this way.
+You can also pass them as Parameters to the script and use them this way.
</p>
</section>