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-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org