jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Frank>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message