jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Kapinos" <Steve.Kapi...@tandberg.com>
Subject RE: How do you read and use values from a file?
Date Thu, 08 May 2008 13:28:55 GMT
>Part of the confusion is caused by the fact that user defined variables
at 
>the test plan level are visible to the entire plan, and the reference
is 
>exactly the same ${varname} leading the first time users of JMeter to
think 
>that any variable is global. 

The docs specifically state that variables are local to threads.  And
also say the first thing to do is add a threadgroup.. Not create
elements above the threadgroup :)  Part of the issue is conceptualizing
'threads' being different instances with their own values because it can
be confusing on which data is reset/refreshed per thread while others
may be persistant.

The problem with the docs on variables is they are kind of spread out..
Being primarily referenced as an after thought in functions.  

Docs need a concise summary table detailing usage of variables vs
properties (and difference between system and local properties).  Items
of note are when they are processed, their scope, and possibilities to
define them (like command line vs UDV etc).

-----Original Message-----
From: Michael Giroux [mailto:mlgiroux@gmail.com] 
Sent: Wednesday, May 07, 2008 5:13 PM
To: JMeter Users List
Subject: Re: How do you read and use values from a file?

> Variables are specifically designed to be local to threads (not just 
> thread groups).
> This is because threads represent different users.
>
> JMeter properties are global, see:
>
> http://jakarta.apache.org/jmeter/usermanual/functions.html

It would be helpful to include little reminders such as this in the
documentation that creates variables.  For example, the __javaScript
function reminds us to "Remember to include the necessary quotes ..."

It would be handy to remind us that the reference name created by a
function or element is local to the thread.

Part of the confusion is caused by the fact that user defined variables
at the test plan level are visible to the entire plan, and the reference
is exactly the same ${varname} leading the first time users of JMeter to
think that any variable is global.

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


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


Mime
View raw message