jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Frank ...@mpexnet.de>
Subject Re: JavaScript function
Date Fri, 13 May 2011 13:09:36 GMT
On 05/13/2011 02:55 PM, DjinnS wrote:
>> See:
>>
>> http://jakarta.apache.org/jmeter/usermanual/functions.html#__javaScript
>>
>>> What's going wrong with my first code ?
>> _Both_ are spelt incorrectly.
> 
> Yes, there is a mistake in my email.
> 
> So, with the correct spelt, my function is:
> 
> ${__javaScript(Math.round(${var}*50/100),total)}
> 
> It isn't working.
> 
> If I follow the documentation, I think I use correctly jemeter's
> variables in function.

Hi,

you should really read that link.

Commas must be escaped in scriptlets.

${__javaScript(Math.round(${var}*50/100)\,total)}

HTH,
Felix

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