ITestElement Interface

Represents a test object that is used internally in the test framework of Visual Studio, and is the interface that is implement by all test cases.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Public Interface ITestElement _
    Inherits ICloneable, IVerifiable, IVisiblePropertyProvider
public interface ITestElement : ICloneable, 
    IVerifiable, IVisiblePropertyProvider
public interface class ITestElement : ICloneable, 
    IVerifiable, IVisiblePropertyProvider
type ITestElement =  
    interface 
        interface ICloneable 
        interface IVerifiable 
        interface IVisiblePropertyProvider 
    end
public interface ITestElement extends ICloneable, IVerifiable, IVisiblePropertyProvider

The ITestElement type exposes the following members.

Properties

  Name Description
Public property AbortRunOnAgentFailure Gets or sets a value that indicates whether to abort the whole test run if a test agent fails.
Public property Adapter Gets the associated test adapter that is used to execute the test.
Public property AgentAttributes Gets a dictionary of agent attributes or restrictions for the current test run.
Public property CanBeAggregated Gets a value that indicates whether this test element can be inserted into aggregation tests.
Public property CategoryId Gets or sets the test list category ID for this test element.
Public property ControllerPlugin Gets the name of the associated controller plug-in.
Public property Copy Gets a copy of this test element.
Public property CreatedByUI Gets or sets a value that indicates whether this test element was created by the user interface.
Public property CssIteration Gets or sets the iteration path for an associated work item.
Public property CssProjectStructure Gets or sets the area path for an associated work item.
Public property DeploymentItems Gets a collection of files to be deployed with a test case.
Public property Description Gets or sets a description for this test element.
Public property Enabled Gets or sets a value that indicates whether this test element is enabled.
Public property ErrorMessageForNonRunnable Gets the error message to use when this test cannot be executed.
Public property ExecutionId Gets or sets the current execution ID for this test element.
Public property Groups Gets a collection of property descriptors that represent the groups to which the properties of this test element belong, and determines how they will be grouped in the properties window of the user interface.
Public property HumanReadableId Gets the ID of this test element as it appears in the user interface.
Public property Id Gets the ID for this test element.
Public property IsAutomated Gets a value that indicates whether this test element object is automated.
Public property IsGroupable Gets a value that indicates whether this test element object can be grouped together with other test element objects.
Public property IsModified Gets a value that indicates whether this test element object has been modified.
Public property IsRunnable Gets a value that indicates whether this test element can be executed as part of a test run.
Public property IsRunOnRestart Gets a value that indicates whether the test run will restart with this test if it crashes during a test run.
Public property Link Gets a link that can be used to access this test element.
Public property Name Gets or sets the name of this test element.
Public property Owner Gets the owner name as it is entered by the user in the user interface.
Public property ParentExecId Gets the test execution ID for the parent object.
Public property Priority Gets or sets a numeric indication of priority for this test element.
Public property ProjectData Gets the project data object for this test element.
Public property ProjectName Gets the name of the project to which this test element belongs.
Public property ProjectRelativePath Gets the relative path of the test project.
Public property Properties Gets a collection of the properties for this test element.
Public property ReadOnly Gets a value that indicates whether this test element is read-only.
Public property SolutionName Gets the name of the solution that contains this test element.
Public property SourceFileName Gets the path and file name for the test that contains this element.
Public property Storage Gets or sets the path of the storage location of the deployment items for this element.
Public property TestCategories Gets a collection of test category items that is assigned to this test element by the user in the user interface.
Public property TestType Gets the test type for this test element.
Public property Timeout Gets or sets the number of milliseconds before the execution of this test element times out.
Public property UserData Gets or sets an object that contains nonpersistable arbitrary data for a custom test element.
Public property VisibleProperties Gets a collection of property descriptors for properties that are visible to the user. (Inherited from IVisiblePropertyProvider.)
Public property WorkItemIds Gets a list of work items that is associated with this test element.

Top

Methods

  Name Description
Public method AssignIsRunnable Assigns values for the IsRunnable and ErrorMessageForNonRunnable properties.
Public method Clone Creates a new object that is a copy of the current instance. (Inherited from ICloneable.)
Public method IsValid When implemented in a derived class, gets a value that indicates whether the essential elements are available and valid. (Inherited from IVerifiable.)

Top

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

IVerifiable

IVisiblePropertyProvider