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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]