Solved! Go to Solution.
For the project that uses some other language you can put the referenced code into Script Extension and use it from there.
Thanks, But i need the script in this format for decoding too
var textBytes = dotNET.System_Text.Encoding.UTF8.GetBytes_2(string);
var encodedText = dotNET.System.Convert.ToBase64String(textBytes);
// return encodedText;
The code I have referenced does not use .Net but is pure Java-based.
If you declare it as a public variable (as in the code sample), then use Base64.encode() to encode the string and Base64.decode() to decode encoded one.
I need a Function containing only Decoding part in java Script. I refered your Link Containing both encoding and decoding functions together and I'm not able to divide them seperately So can you help me with Seperate functions for both encoding and decode functionalities.
The referred link contains minified code (with extra spaces and indentations removed). You may expand it with the help of some Java Script formatter (or manually) and remove the part that you don't need.
P.S. Out of curiosity: is it really a problem if encoding function is present in the code?
Compare images using the Region Checkpoint
Converting UTC TimeDate in an Excel file
Compare HTML table with Excel file and correct data in Excel file
How to execute remote test and obtain results via Test Runner REST API