Encoding with script developer


#1

Within my tests I would like to open a URL which is created from a dynamic variable. The content of the variable must be encoded because it can contain special characters (= or / or & …). Is ist possible to encode a string using Script Developer?


#2

Hi,

There is no built-in support for en/decoding strings in Script Developer. But you can use the storeEval(jsExp, varName) command in combination with the JavaScript-Function encodeURIComponent for this purpose.

Thanks,
Hartmut


#3

It works, thanks a lot!


#4

You’re welcome. Happy testing!


closed #5

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.