jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DjinnS <dji...@chninkel.net>
Subject JavaScript function
Date Fri, 13 May 2011 11:39:44 GMT
Bonjour,

I'm going crazy ! I can't used $__JavaScript{} to get a ratio.

I try to use the following code (in a "User Defined Variable"):

${__JavaScript(Math.round(10*50/100))}

(in fact, "10" is also a value from an another "User Defined Variable")

This code don't work.

If I try a very simple math operation, like this:

${__JavaScript(1+1)}

It's ok !

What's going wrong with my first code ?

Thx in advance,

Rergards,


--
DjinnS

---------------------------------------------------------------------
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