How can I Encrypt/Decrypt a String in a TestPartner Test Script

over 9 years ago

Encrypting a String in a Test Script

In the test script, locate the line of code that contains the string to be encrypted. This is typically a line containing a SetText( ) method that sets the text to an edit box:-

Select the string (including the quotes) of the text to be encrypted:-

Click Tools>Encrypt String... The Encrypt String dialog box appears.

Type the string to be encrypted in the Password field:-

Click OK to paste the string into the test script over the highlighted string. TestPartner replaces the highlighted string with the encrypted string:-

Decrypting a String in a Test Script

We can decrypt the encrypted string above by using the DecryptString method

When run, this will return the plain text of the encrypted string to the specified EditBox.


Support Tip
Comment List
Related Discussions