You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Liao, Avian" <al...@enporion.com> on 2004/12/09 20:01:40 UTC
error message when running javaScript function
Hi,
When I use javaScript function, I have the foolowing error message, I try to test my javascript outside the Jmeter, and it works fine. so....what is wrong when I copy over to Jmeter. ${convert} is my variable, and I am positive that this varibale exists.
${__javaScript('${convert}'.replace(/ref%3A%3AEvent_LC%5B(\w*-\w*-\w*-\w*-\w*)%5D/,"ref::Event_LC[$1]"),showScript)}
jmeter.threads.JMeterThread: SyntaxError: missing ) after argument list (<cmd>; line 1)
Thanks, guys.
Avian
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: error message when running javaScript function
Posted by sebb <se...@gmail.com>.
Use "\" to escape "," in parameters.
On Thu, 9 Dec 2004 14:01:40 -0500, Liao, Avian <al...@enporion.com> wrote:
> Hi,
>
> When I use javaScript function, I have the foolowing error message, I try to test my javascript outside the Jmeter, and it works fine. so....what is wrong when I copy over to Jmeter. ${convert} is my variable, and I am positive that this varibale exists.
>
> ${__javaScript('${convert}'.replace(/ref%3A%3AEvent_LC%5B(\w*-\w*-\w*-\w*-\w*)%5D/,"ref::Event_LC[$1]"),showScript)}
> jmeter.threads.JMeterThread: SyntaxError: missing ) after argument list (<cmd>; line 1)
>
> Thanks, guys.
>
> Avian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org