Man, that is marvelous. Forgive me for not thinking about such things, I still have not learned the ways of jmeter, but it is starting to look like a superb tool.

thanks!

On Jan 11, 2007, at 8:23 AM, sebb wrote:

On 11/01/07, Alexander Wallace <[EMAIL PROTECTED]> wrote:
I think i didn't express what I meant well... In this case, the whole

SELECT * FROM table WHERE id = ${__threadNum};

is contained in a ${query} variable, read from a file using a csv
data set

the ${query} var is being read by a jdbc sampler ...  but the $
{__threadNum} portion of the value of ${query} is not being replaced
with the thread number ( i assume it is because the whole string is
inside a variable)... Is this replacing of a var with a value inside
of another var value at all possible?   I'll research more on the
functions still...

JMeter does not replace variables referenced in lines read from csv files.

However, you could use the Javascript, BeanShell or Jexl functions to
do your own string replacement.

Might be easiest to code the data using a different variable marker, e.g.

SELECT * FROM table where id = ~1

you can then do something like

"${query}".replace("~1","${varname}")

depending on the language.

For testing functions and variables etc, the Java Sampler is very
useful - you can even put the function call in the Label field, and it
will show up in a Listener - e.g. Table Listener.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to