ITestElement Interface

Definition

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.

public interface class ITestElement : ICloneable, Microsoft::VisualStudio::TestTools::Common::IVerifiable, Microsoft::VisualStudio::TestTools::Common::IVisiblePropertyProvider
public interface ITestElement : ICloneable, Microsoft.VisualStudio.TestTools.Common.IVerifiable, Microsoft.VisualStudio.TestTools.Common.IVisiblePropertyProvider
type ITestElement = interface
    interface ICloneable
    interface IVerifiable
    interface IVisiblePropertyProvider
Public Interface ITestElement
Implements ICloneable, IVerifiable, IVisiblePropertyProvider
Derived
Implements

Properties

AbortRunOnAgentFailure

Gets or sets a value that indicates whether to abort the whole test run if a test agent fails.

Adapter

Gets the associated test adapter that is used to execute the test.

AgentAttributes

Gets a dictionary of agent attributes or restrictions for the current test run.

CanBeAggregated

Gets a value that indicates whether this test element can be inserted into aggregation tests.

CategoryId

Gets or sets the test list category ID for this test element.

ControllerPlugin

Gets the name of the associated controller plug-in.

Copy

Gets a copy of this test element.

CreatedByUI

Gets or sets a value that indicates whether this test element was created by the user interface.

CssIteration

Gets or sets the iteration path for an associated work item.

CssProjectStructure

Gets or sets the area path for an associated work item.

DeploymentItems

Gets a collection of files to be deployed with a test case.

Description

Gets or sets a description for this test element.

Enabled

Gets or sets a value that indicates whether this test element is enabled.

ErrorMessageForNonRunnable

Gets the error message to use when this test cannot be executed.

ExecutionId

Gets or sets the current execution ID for this test element.

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.

HumanReadableId

Gets the ID of this test element as it appears in the user interface.

Id

Gets the ID for this test element.

IsAutomated

Gets a value that indicates whether this test element object is automated.

IsGroupable

Gets a value that indicates whether this test element object can be grouped together with other test element objects.

IsModified

Gets a value that indicates whether this test element object has been modified.

IsRunnable

Gets a value that indicates whether this test element can be executed as part of a test run.

IsRunOnRestart

Gets a value that indicates whether the test run will restart with this test if it crashes during a test run.

Link

Gets a link that can be used to access this test element.

Name

Gets or sets the name of this test element.

Owner

Gets the owner name as it is entered by the user in the user interface.

ParentExecId

Gets the test execution ID for the parent object.

Priority

Gets or sets a numeric indication of priority for this test element.

ProjectData

Gets the project data object for this test element.

ProjectName

Gets the name of the project to which this test element belongs.

ProjectRelativePath

Gets the relative path of the test project.

Properties

Gets a collection of the properties for this test element.

ReadOnly

Gets a value that indicates whether this test element is read-only.

SolutionName

Gets the name of the solution that contains this test element.

SourceFileName

Gets the path and file name for the test that contains this element.

Storage

Gets or sets the path of the storage location of the deployment items for this element.

TestCategories

Gets a collection of test category items that is assigned to this test element by the user in the user interface.

TestType

Gets the test type for this test element.

Timeout

Gets or sets the number of milliseconds before the execution of this test element times out.

UserData

Gets or sets an object that contains nonpersistable arbitrary data for a custom test element.

VisibleProperties

Gets a collection of property descriptors for properties that are visible to the user.

(Inherited from IVisiblePropertyProvider)
WorkItemIds

Gets a list of work items that is associated with this test element.

Methods

AssignIsRunnable(Boolean, String)

Assigns values for the IsRunnable and ErrorMessageForNonRunnable properties.

IsValid()

When implemented in a derived class, gets a value that indicates whether the essential elements are available and valid.

(Inherited from IVerifiable)

Applies to