How To Change Connection String When Test Manager Installed With Encrypted Parameters?

How To Change Connection String when Test Manager installed with encrypted parameters?

Fresh installed Test Manger came with "ConnectionStrings", "DataEncryptionKey" and "ClientSecret" encrypted in appsettings.Protected.json file.

In order to modify the actual "ConnectionStrings" to point to another data source, it is required to first encrypt the new "ConnectionStrings" with the below Obfuscator command,

  1. Open PowerShell as an Administrator
  2. Navigate to the Test Manager installation directory
  • cd "C:\Program Files (x86)\UiPath\TestManager"
  1. Run \Tools\TestManagerProvisioner\testmanager.exe obfuscator obfuscate text <modified conn string>

  1. Copy the result in appsettings.Protected.json

  1. Do a "IISRESET" on the Test Manager machine.

Note: Before modifying the appsettings.Protected.json file, it is recommended to take a backup of the file into a different directory.