Working with Sensitive Text
Katalon Studio supports text encryption directly inside the test script. This feature is helpful in case the project team needs to share tests containing sensitive information with other team members or key stakeholders. There are two ways to leverage this feature in Manual Mode and Script Mode:
Open your desired Test Case in manual mode.
Click Add and select the
Set Encrypted Textbuilt-in keywords. To learn more about this keyword, see [WebUI] Set Encrypted Text.
Set Encrypted Texttest step, double-click on the Input field. The Input dialog appears to help you encrypt any raw text.
Double-click on the Value field. Enter the Raw Text. The Encrypted Text is generated accordingly.
When you are done, click Insert. The Encrypted Text then closes. In the Input dialog, you can now see the Value is added. Click OK.
Raw text must be encrypted before using in Script Mode.
Open your desired Katalon project.
In the main menu, go to Help > Encrypted Text. The Encrypted Text dialog appears.
Enter the Raw Text. The Encrypted Text is generated accordingly.
When you are done, click Copy and Close.
Open your test case in script mode, paste the encrypted text as a param of the
setEncryptedTextbuilt-in keywords. To learn more about this keyword, see [WebUI] Set Encrypted Text.
'Input password' WebUI.setEncryptedText(findTestObject('Page_Login/txt_Password'), 'g3/DOGG74jC3Flrr3yH+3D/yKbOqqUNM')