[prev in list] [next in list] [prev in thread] [next in thread]
List: jmeter-user
Subject: Re: Finding length of a variable value string
From: mabel <remedyqa () yahoo ! com>
Date: 2004-07-30 20:45:12
Message-ID: 20040730204512.83810.qmail () web52201 ! mail ! yahoo ! com
[Download RAW message or body]
Nevermind, it does work. It's Friday. I'm thinking about the weekend....
mabel <remedyqa@yahoo.com> wrote:I would like to find the length of a variable value. So I tried using
javascript to evaluate it as such in a user parameter. Suppose the
value of ${testplanvariable} = "test"
${__javaScript('${testplanvariable}'.length,len)}
However, the variable is not evaluated to its value. Instead of length
being 4, Javascript will give the length of 19. If I don't put the
single quotes, jmeter gives an error.
I thought jmeter variables are evaluated inside the javascript
function. Is there some other way of getting the length of a variable
value?
thanks,
mabel
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic