How to run the same test in different Lab Environments?

I will try to address today a common query by lot of users of Visual Studio Lab Management on how to correctly run tests in different Lab Environments. This requirement can be achieved by making the test code read the Server names/other configuration through environment variables: The following post by Gautam explains the changes that will…