Encoding with script developer


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?



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.



It works, thanks a lot!


You’re welcome. Happy testing!

closed #5

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