Share via


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)

Syntax

'Declaration
Public Interface ITestEnvironment _
    Inherits IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged
public interface ITestEnvironment : IPropertyOwner, 
    IDataErrorInfo, INotifyPropertyChanged
public interface class ITestEnvironment : IPropertyOwner, 
    IDataErrorInfo, INotifyPropertyChanged
type ITestEnvironment =  
    interface 
        interface IPropertyOwner 
        interface IDataErrorInfo 
        interface INotifyPropertyChanged 
    end
public interface ITestEnvironment extends IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged

The ITestEnvironment type exposes the following members.

Properties

  Name Description
Public property ControllerDisplayName Gets the display name of the test controller that owns the test environment.
Public property ControllerEnvironmentId Gets or sets the ID of the controller.
Public property ControllerName Gets the name of the controller that owns the test environment.
Public property DateCreated Gets the date and time that the environment was created.
Public property Description Gets or sets the description of the test environment.
Public property DisplayName Gets or sets the display name for the test environment.
Public property EnvironmentType Gets or sets a string that represents the environment type.
Public property Error Gets an error message indicating what is wrong with this object. (Inherited from IDataErrorInfo.)
Public property Id Gets the identifier for the test environment, as registered in Visual Studio Team Foundation Server.
Public property InvalidProperties Gets a list of property names that are invalid. (Inherited from IPropertyOwner.)
Public property IsDirty Gets a value that indicates whether any properties have changed since the last refresh, fetch, or save. (Inherited from IPropertyOwner.)
Public property Item Gets the error message for the property with the given name. (Inherited from IDataErrorInfo.)
Public property LabEnvironmentUri Gets or sets the uniform resource identifier (URI) for the corresponding lab environment.
Public property LabServerUri Gets or sets the URI for the lab server on which the corresponding lab environment can be found.
Public property MachineRoles Gets or sets a collection of machine roles in this test environment.
Public property Name Gets or sets the unique name for this test environment under a team project or test controller.
Public property Owner Gets or sets the identity of the person who owns this environment.
Public property Properties Gets the property bag for the test controller.
Public property TeamProject Gets the team project that owns the test environment.
Public property TestController Gets the test controller that owns the test environment.

Top

Methods

  Name Description
Public method Register Registers this test environment with the team project collection and sets the Id.
Public method Unregister Unregisters this test environment and its test environments from the team project collection.
Public method Update Persists the updated properties of the test environment.

Top

Events

  Name Description
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestEnvironmentHelper