Forum Discussion
ebodien
11 years agoContributor
If the names of the VMs where the projects are deployed is known and fixed you could use an OnStartTest event to read the name of the machine using Sys.HostName and based on the name of the machine change the connection string. Sys Object
A pseudo code example:
A pseudo code example:
Sub GeneralEvents_OnStartTest(Sender)
Dim machineName
machineName = Sys.HostName
Select Case machineName
Case MyMachine
ProjectSuite.Variables.connectionString = "C:\MyDatabase"
Case VM1
ProjectSuite.Variables.connectionString = "C:\VM1sDatabase"
End Select
End Sub