jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Frank ...@mpexnet.de>
Subject Re: String Replacement
Date Wed, 06 Jul 2011 15:01:44 GMT
On 07/06/2011 04:59 PM, Selvam T, Palani wrote:
> ${__javaScript(${userName}.replace(/ /,"+"))}

Try quotes like ${__javaScript("${userName}".replace(/ /,"+"))}

Javascript doesn't get to see that you're handling a variable, Jmeter
will substitute the value as a string. You need to make it clear to
Javascript that this value is just that - a string.

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