The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
TestRunConfiguration::SetTestEnvironment Method (String^, String^)
Sets the test environment to use in a test run by using these test settings and the controller that hosts the test environment.
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Parameters
- controllerName
-
Type:
System::String^
Name of the controller that hosts the test environment. If this is null, the tests are run locally.
- testEnvironmentName
-
Type:
System::String^
Name of the test environment to use. Null or empty removes any ties to any test environment from the test settings.
| Exception | Condition |
|---|---|
| T:Messages.Common_TestSettings_SetTestEnvironment_ControllerNullEnvironmentNotNull | controllerName is null or empty but testEnvironmentName is not. |
Show: