Using safe, generic accounts for testing is a boon; however, sometimes that’s simply not possible. Corporate policies may prevent “fake” accounts, or perhaps the test accounts have access to sensitive areas. In these cases it’s critical you’re able to secure the logon credentials.
Test Studio’s Service Pack 2 for our 2012 R1 release now enables you to securely encrypt passwords in your tests with just a simple click.
Here’s how a test logging on to our demo app looks. You can see the password is stored in clear text in the test:
The password is also stored in clear text in the XML for the test file itself:
Encrypting the password is a snap. Select the step with the password, and pull down the Encrypt property. Set it to True and save the file. (NOTE: Changes are not persisted to your test’s XML file until you save the test!)
You’ll see the test step update to remove the clear text.
The backing XML information is also now encrypted:
A few important notes:
- Encryption is via the standard .NET library and is implemented with the AES algorithm.
- Encrypting a test step changes that step’s properties to read only. You can’t update the password after you’ve saved the encrypted step. You’ll need to re-record that step.
We hope you find this new feature useful in your testing!