We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

ITestEnvironment Interface

Represents a test environment in the test management client.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

public interface ITestEnvironment : IPropertyOwner, 
	IDataErrorInfo, INotifyPropertyChanged

The ITestEnvironment type exposes the following members.

Public propertyControllerDisplayNameGets the display name of the test controller that owns the test environment.
Public propertyControllerEnvironmentIdGets or sets the ID of the controller.
Public propertyControllerNameGets the name of the controller that owns the test environment.
Public propertyDateCreatedGets the date and time that the environment was created.
Public propertyDescriptionGets or sets the description of the test environment.
Public propertyDisplayNameGets or sets the display name for the test environment.
Public propertyEnvironmentTypeGets or sets a string that represents the environment type.
Public propertyErrorGets an error message indicating what is wrong with this object. (Inherited from IDataErrorInfo.)
Public propertyIdGets the identifier for the test environment, as registered in Visual Studio Team Foundation Server.
Public propertyInvalidPropertiesGets a list of property names that are invalid. (Inherited from IPropertyOwner.)
Public propertyIsDirtyGets a value that indicates whether any properties have changed since the last refresh, fetch, or save. (Inherited from IPropertyOwner.)
Public propertyItemGets the error message for the property with the given name. (Inherited from IDataErrorInfo.)
Public propertyLabEnvironmentUriGets or sets the uniform resource identifier (URI) for the corresponding lab environment.
Public propertyLabServerUriGets or sets the URI for the lab server on which the corresponding lab environment can be found.
Public propertyMachineRolesGets or sets a collection of machine roles in this test environment.
Public propertyNameGets or sets the unique name for this test environment under a team project or test controller.
Public propertyOwnerGets or sets the identity of the person who owns this environment.
Public propertyPropertiesGets the property bag for the test controller.
Public propertyTeamProjectGets the team project that owns the test environment.
Public propertyTestControllerGets the test controller that owns the test environment.

Public methodRegisterRegisters this test environment with the team project collection and sets the Id.
Public methodUnregisterUnregisters this test environment and its test environments from the team project collection.
Public methodUpdatePersists the updated properties of the test environment.

Public eventPropertyChangedOccurs when a property value changes. (Inherited from INotifyPropertyChanged.)