Sunday, December 7, 2014

Resolution for Double URL encoding text in loadrunner script

Sometimes we receive the script calls in loadrunner with double encoded format.

such as for example : string " performance testing" is converted to "%2520%2520%2520%2520%2520performance%2520testing"

In such a case the below mentioned soultion will help.

Step1 : ensure DFE extensions in run time settings should be enabled.

Step2 : Use following code bits in the script :

web_convert_from_formatted("FormattedData/EscapedBinary=" performance testing"","TargetParam=prm1",LAST);

web_convert_from_formatted("FormattedData/EscapedBinary={prm1}","TargetParam=prm2",LAST);

Hope this solution helps.

No comments:

Post a Comment