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/10/09 18:13:22 UTC

svn commit: r703198 - /jakarta/jmeter/trunk/xdocs/usermanual/functions.xml

Author: sebb
Date: Thu Oct  9 09:13:22 2008
New Revision: 703198

URL: http://svn.apache.org/viewvc?rev=703198&view=rev
Log:
Document Javascript static method access

Modified:
    jakarta/jmeter/trunk/xdocs/usermanual/functions.xml

Modified: jakarta/jmeter/trunk/xdocs/usermanual/functions.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/functions.xml?rev=703198&r1=703197&r2=703198&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/functions.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/functions.xml Thu Oct  9 09:13:22 2008
@@ -482,6 +482,12 @@
 <li>sampleResult - previous SampleResult object (if any)</li>
 <li>props - JMeter Properties object</li>
 </ul>
+<p>
+Rhinoscript allows access to static methods via its Packages object.
+See the <a href="http://www.mozilla.org/rhino/ScriptingJava.html">Scripting Java</a> documentation.
+For example one can access the JMeterContextService static methods thus:
+<code>Packages.org.apache.jmeter.threads.JMeterContextService.getTotalThreads()</code>
+</p>
 <note>
 JMeter is not a browser, and does not interpret the JavaScript in downloaded pages.
 </note>



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