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 2009/05/07 17:30:46 UTC
svn commit: r772678 - in /jakarta/jmeter/trunk/xdocs/usermanual:
best-practices.xml component_reference.xml functions.xml
Author: sebb
Date: Thu May 7 15:30:46 2009
New Revision: 772678
URL: http://svn.apache.org/viewvc?rev=772678&view=rev
Log:
Docs
Modified:
jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml
jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
jakarta/jmeter/trunk/xdocs/usermanual/functions.xml
Modified: jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml?rev=772678&r1=772677&r2=772678&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml Thu May 7 15:30:46 2009
@@ -89,7 +89,13 @@
<note>Please note that matching is case-sensitive.</note>
-</p><!--TODO: Describe how to use this to record against one server[name]
+</p>
+<p>
+If JMeter does not record any samples, check that the brower really is using the proxy.
+If the browser works OK even if JMeter is not running, then the browser cannot be using the proxy.
+Some browsers ignore proxy settings for localhost or 128.0.0.1; try using the local hostname or IP instead.
+</p>
+<!--TODO: Describe how to use this to record against one server[name]
and run against another. Actually, this particular example may be beter for the HTTP Request Defaults...
a good similar example for the variables is http vs. https.-->
<!--TODO: Hey! We need to mention that https is not supported and how to work around that!-->
Modified: jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml?rev=772678&r1=772677&r2=772678&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml Thu May 7 15:30:46 2009
@@ -4371,8 +4371,11 @@
To check if this is the case, try stopping the proxy.
If the browser still downloads pages, then it was not sending requests via the proxy.
Double-check the browser options.
-In particular check that the browser is not set to "Bypass proxy server for local addresses"
+If you are trying to record from a server running on the same host,
+then check that the browser is not set to "Bypass proxy server for local addresses"
(this example is from IE7, but there will be similar options for other browsers).
+If JMeter does not record browser URLs such as http://localhost/ or http://128.0.0.1/,
+try using the non-loopback hostname or IP address, e.g. http://myhost/ or http://192.168.0.2/.
</p>
<p><b>Handling of HTTP Request Defaults</b></p>
Modified: jakarta/jmeter/trunk/xdocs/usermanual/functions.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/functions.xml?rev=772678&r1=772677&r2=772678&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/functions.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/functions.xml Thu May 7 15:30:46 2009
@@ -214,8 +214,14 @@
<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>
-
+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>
+If a string contains a backslash('\') and also contains a function or variable reference, the backslash will be removed if
+it appears before '$' or ',' or '\'.
+This behaviour is necessary to allow for nested functions that include commas or the string ${.
+Backslashes before '$' or ',' or '\' are not removed if the string does not contain a function or variable reference.
+</note>
<p>
<b>The value of a variable or function can be reported</b> using the <a href="#__logn">__logn()</a> function.
The __logn() function reference can be used anywhere in the test plan after the variable has been defined.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
Re: svn commit: r772678 - in /jakarta/jmeter/trunk/xdocs/usermanual:
best-practices.xml component_reference.xml functions.xml
Posted by Milamber <mi...@gmail.com>.
Hi
Little mistake: (localhost) loopback address is 127.0.0.1 (not 128.0.0.1).
Milamber
Le 07/05/2009 15:30, sebb@apache.org a ecrit :
> Author: sebb
> Date: Thu May 7 15:30:46 2009
> New Revision: 772678
>
> URL: http://svn.apache.org/viewvc?rev=772678&view=rev
> Log:
> Docs
>
> Modified:
> jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml
> jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
> jakarta/jmeter/trunk/xdocs/usermanual/functions.xml
>
> Modified: jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml
> URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml?rev=772678&r1=772677&r2=772678&view=diff
> ==============================================================================
> --- jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml (original)
> +++ jakarta/jmeter/trunk/xdocs/usermanual/best-practices.xml Thu May 7 15:30:46 2009
> @@ -89,7 +89,13 @@
>
> <note>Please note that matching is case-sensitive.</note>
>
> -</p><!--TODO: Describe how to use this to record against one server[name]
> +</p>
> +<p>
> +If JMeter does not record any samples, check that the brower really is using the proxy.
> +If the browser works OK even if JMeter is not running, then the browser cannot be using the proxy.
> +Some browsers ignore proxy settings for localhost or 128.0.0.1; try using the local hostname or IP instead.
> +</p>
> +<!--TODO: Describe how to use this to record against one server[name]
> and run against another. Actually, this particular example may be beter for the HTTP Request Defaults...
> a good similar example for the variables is http vs. https.-->
> <!--TODO: Hey! We need to mention that https is not supported and how to work around that!-->
>
> Modified: jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
> URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml?rev=772678&r1=772677&r2=772678&view=diff
> ==============================================================================
> --- jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml (original)
> +++ jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml Thu May 7 15:30:46 2009
> @@ -4371,8 +4371,11 @@
> To check if this is the case, try stopping the proxy.
> If the browser still downloads pages, then it was not sending requests via the proxy.
> Double-check the browser options.
> -In particular check that the browser is not set to "Bypass proxy server for local addresses"
> +If you are trying to record from a server running on the same host,
> +then check that the browser is not set to "Bypass proxy server for local addresses"
> (this example is from IE7, but there will be similar options for other browsers).
> +If JMeter does not record browser URLs such as http://localhost/ or http://128.0.0.1/,
> +try using the non-loopback hostname or IP address, e.g. http://myhost/ or http://192.168.0.2/.
> </p>
>
> <p><b>Handling of HTTP Request Defaults</b></p>
>
> Modified: jakarta/jmeter/trunk/xdocs/usermanual/functions.xml
> URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/functions.xml?rev=772678&r1=772677&r2=772678&view=diff
> ==============================================================================
> --- jakarta/jmeter/trunk/xdocs/usermanual/functions.xml (original)
> +++ jakarta/jmeter/trunk/xdocs/usermanual/functions.xml Thu May 7 15:30:46 2009
> @@ -214,8 +214,14 @@
> <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>
> -
> +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>
> +If a string contains a backslash('\') and also contains a function or variable reference, the backslash will be removed if
> +it appears before '$' or ',' or '\'.
> +This behaviour is necessary to allow for nested functions that include commas or the string ${.
> +Backslashes before '$' or ',' or '\' are not removed if the string does not contain a function or variable reference.
> +</note>
> <p>
> <b>The value of a variable or function can be reported</b> using the <a href="#__logn">__logn()</a> function.
> The __logn() function reference can be used anywhere in the test plan after the variable has been defined.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org