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");

READ  Micro Focus introduces New Protocol : TruWeb

Leave a Comment