Parameterization of text which has New Line/Unicode Characaters in TruClient Protocol

Parameterization of text which has New Line/Unicode Characaters in TruClient Protocol

Whenever we enter a New Line character while entering the text in the business process, TruClient protocol will record it as Unicode characters. How can we parameterize such text to be able to substitute the text correctly during replay?

Solution

When we parameterize the text which has New Line/Unicode Characters Vugen escapes the "\" in parameters, so when we get the value returned by LR.getParam(), it contains “\\u000a” instead of "\u000a"

You can use the following to convert it to proper characters

LR.getParam("<Parameter Name>").replace(/\\u000a/g, "\u000a");

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