SyntaxError: illegal character error message during replay of Evaluate JavaScript step in TruClient script

During replay of TruClient protocol function in LoadRunner the following error message is displayed:

Evaluate JavaScript code var myGlobalVar=LR.getPa…t(myGlobalVar); ** failed – exception occurred: SyntaxError: illegal character

the error message could also be:

“SyntaxError: Invalid character [MsgId: MERR-203252].”

The function contains a not English character.

In the example

var myGlobalVar=LR.getParam(“myParam”;

the character “ in (“myParam”) is not written using English keyboard which will cause the error message.

Make sure that the TruClient functions are written using only English characters.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s