Switch between two environments
Hi
It is possible for WATS Client to switch between two environments by changing the TargetURL in settings.json without Disconnect ,type username + password and connect again in configure Application .
I have already added the same username and password in both environments .
Can you tell me if there any way or option to do that ?
Best regards
Samir
-
Hi Samir,
When connecting the WATS Client it uses the provided credentials to create it's own user with role Client. The client will have two different users on the two environments, so connecting with an identical user will not do the trick.
You can connect the WATS Client programmatically. It can be done with the .NET C# API by calling TDM.RegisterClient(), and it can also be done with for example Powershell. An example of how to do that can be found in this article, in the Connect WATS Client to WATS section: https://support.virinco.com/hc/en-us/articles/20088918877980-How-to-do-an-unattended-Install-Setup-of-WATS-Client
Note that when you change the connection, reports that are queue for upload (temporarily saved in C:\ProgramData\Virinco\WATS\Reports\) will start being uploaded to the other environment. Therefore this sounds like a bad idea to do in production.
If the goal is to synchronize or share test data between environments, rather than manually switching them, consider using Enterprise Connection. This module automates data forwarding and synchronization between two WATS accounts/environments rather than manual reconnections.
Please sign in to leave a comment.
Comments
1 comment