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.

READ  Script recording is slow and the recording platform occasionally becomes cpu bound

Leave a Comment