TestAggregation Class

Represents an aggregation of test elements and links.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.TestElement
    Microsoft.VisualStudio.TestTools.Common.TestAggregation

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

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class TestAggregation _
    Inherits TestElement _
    Implements ITestAggregation, ITestElement, ICloneable, IVerifiable,  _
    IVisiblePropertyProvider
[SerializableAttribute]
public abstract class TestAggregation : TestElement, 
    ITestAggregation, ITestElement, ICloneable, IVerifiable, IVisiblePropertyProvider
[SerializableAttribute]
public ref class TestAggregation abstract : public TestElement, 
    ITestAggregation, ITestElement, ICloneable, IVerifiable, IVisiblePropertyProvider
[<AbstractClass>]
[<SerializableAttribute>]
type TestAggregation =  
    class 
        inherit TestElement 
        interface ITestAggregation 
        interface ITestElement 
        interface ICloneable 
        interface IVerifiable 
        interface IVisiblePropertyProvider 
    end
public abstract class TestAggregation extends TestElement implements ITestAggregation, ITestElement, ICloneable, IVerifiable, IVisiblePropertyProvider

The TestAggregation type exposes the following members.

Constructors

  Name Description
Protected method TestAggregation() Initializes a new instance of the TestAggregation class.
Protected method TestAggregation(TestAggregation) Initializes a new instance of the TestAggregation class that is a copy of the provided test aggregation object.
Protected method TestAggregation(SerializationInfo, StreamingContext) Initializes a new instance of the TestAggregation class from XML by using the provided information and context.
Protected method TestAggregation(String, String) Initializes a new instance of the TestAggregation class.

Top

Properties

  Name Description
Public property AbortRunOnAgentFailure Gets or sets a value that indicates whether the test run will be aborted if a test agent fails. (Inherited from TestElement.)
Public property Adapter When overridden in a derived class, gets the associated diagnostic data adapter. (Inherited from TestElement.)
Public property AgentAttributes Gets a dictionary of agent attributes. (Inherited from TestElement.)
Public property CanBeAggregated When overridden in a derived class, gets a value that indicates whether this test element can be aggregated. (Inherited from TestElement.)
Public property CategoryId Gets or sets the test category ID for this test element. (Inherited from TestElement.)
Public property ControllerPlugin When overridden in a derived class, gets a custom controller extension object. (Inherited from TestElement.)
Public property Copy Gets a copy of this test element. (Inherited from TestElement.)
Public property CreatedByUI Gets or sets a value that indicates whether this element was created by the user interface. (Inherited from TestElement.)
Public property CssIteration Gets or sets the iteration path for an associated work item. (Inherited from TestElement.)
Public property CssProjectStructure Gets or sets the area path of an associated work item. (Inherited from TestElement.)
Public property DeploymentItems Gets a collection of items to be deployed together with this test. (Inherited from TestElement.)
Public property DeploymentItemsEditable Gets an array of the file names for those deployment items that are editable. (Inherited from TestElement.)
Public property Description Gets or sets a description of this test element. (Inherited from TestElement.)
Public property Elements Gets an array of the test element IDs in this aggregation.
Public property Enabled Gets or sets a value that indicates whether this test element is enabled. (Inherited from TestElement.)
Public property ErrorMessageForNonRunnable Gets the error message to use if the test element is not runnable. (Inherited from TestElement.)
Public property ExecutionId Gets or sets the execution ID (Inherited from TestElement.)
Public property Groups Gets a collection of property descriptors that represents the groups to which the properties of this test element belong, and also determines how the descriptors will be grouped in the properties window of the user interface. (Inherited from TestElement.)
Public property HostData Gets or sets data to be used by the custom host that is identified by the HostType property. (Inherited from TestElement.)
Public property HostType Gets or sets the type name for the custom host to use for the test instead of the default host. (Inherited from TestElement.)
Public property HumanReadableId Gets the ID of this test element as it appears in the user interface. (Inherited from TestElement.)
Public property Id Gets the ID for this test element. (Inherited from TestElement.)
Public property IsAutomated Gets a value that indicates whether this test element is automated. (Inherited from TestElement.)
Public property IsGroupable Gets or sets a value that indicates whether this test element can be grouped. (Inherited from TestElement.)
Public property IsLoadTestCandidate Gets a value that indicates whether this test element will be included in a list of possible load tests in the UI. (Inherited from TestElement.)
Public property IsModified Gets or sets a value that indicates whether this test element has been modified. (Inherited from TestElement.)
Public property IsRunnable Gets or sets a value that indicates whether this test element is runnable. (Inherited from TestElement.)
Public property IsRunOnRestart Gets or sets a value that indicates whether this test element is to be run if the test run is restarted. (Inherited from TestElement.)
Public property Link Gets a link to this test element. (Inherited from TestElement.)
Public property Links Gets an array of the test links in this aggregation.
Public property Name Gets or sets the name of this test element. (Inherited from TestElement.)
Public property Owner Gets or sets the name of the owner of this test element. (Inherited from TestElement.)
Public property ParentExecId Gets or sets the TestExecId of the parent test element. (Inherited from TestElement.)
Public property Priority Gets or sets the relative priority of this test element. (Inherited from TestElement.)
Public property ProjectData Gets or sets the data for the test project that contains this test element. (Inherited from TestElement.)
Public property ProjectName Gets the name of the test project that contains this test element. (Inherited from TestElement.)
Public property ProjectRelativePath Gets the relative path of the test project that contains this test element. (Inherited from TestElement.)
Public property Properties Gets a collection of the properties for this test element. (Inherited from TestElement.)
Public property ReadOnly When overridden in a derived class, gets or sets a value that indicates whether this test element is read-only. (Inherited from TestElement.)
Public property SolutionName Gets the name of the solution that contains this test element. (Inherited from TestElement.)
Public property SourceFileName Gets the path and file name for the test that contains this element. (Inherited from TestElement.)
Public property Storage Gets or sets the path of the storage location of the deployment items for this element. (Inherited from TestElement.)
Public property SynchronizedStart Infrastructure. Obsolete. Gets a value that indicates whether the tests and linked tests in this aggregation must be started synchronously.
Public property TestCategories Gets a collection of test category items that is assigned to this test element by the user in the user interface. (Inherited from TestElement.)
Public property TestIdString Gets the test ID for this test element as a string. (Inherited from TestElement.)
Public property TestType When overridden in a derived class, gets the type of this test. (Inherited from TestElement.)
Public property TestTypeName Gets the type of the test element as a string. (Inherited from TestElement.)
Public property Timeout Gets or sets the number of seconds before the execution of this test element times out. (Inherited from TestElement.)
Public property UserData Gets or sets an object that contains nonpersistable arbitrary data for a custom test element. (Inherited from TestElement.)
Public property VisibleLinks Gets an array of links in this test aggregation that is visible in the user interface.
Public property VisibleProperties Gets a collection of the properties of this test element that is visible in the user interface. (Inherited from TestElement.)
Public property WorkItemIds Gets or sets a list of work item IDs that is associated with this test element. (Inherited from TestElement.)
Public property WorkItemIdsViewable Gets or sets a list of work item IDs for viewable work items. (Inherited from TestElement.)

Top

Methods

  Name Description
Public method Add Adds the provided link to the links in this test aggregation.
Public method AssignIsRunnable Assigns values for the IsRunnable and ErrorMessageForNonRunnable properties. (Inherited from TestElement.)
Public method Clear Removes all links in this test aggregation.
Public method Clone When overridden in a derived class, returns a copy of this test element. (Inherited from TestElement.)
Public method Equals Returns a value that indicates whether the provided object is equal to this test element object. (Inherited from TestElement.)
Public method FillDataRow Fills the provided data row object by using test data results from visible properties of this test element. (Inherited from TestElement.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from TestElement.)
Public method GetObjectData Populates a SerializationInfo by using the data that are required to serialize the target object. (Overrides TestElement.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValid Returns a value that indicates whether this test element is valid. (Inherited from TestElement.)
Public method Load Loads an instance of this class from the provided XML element by using the provided XML store parameters. (Overrides TestElement.Load(XmlElement, XmlTestStoreParameters).)
Public method MakeLinksRelative Makes the paths for all links in this test aggregation relative to the provided root path.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the provided link from the links in this test aggregation.
Public method Save Saves this object in the provided XML element. (Overrides TestElement.Save(XmlElement, XmlTestStoreParameters).)
Public method ToString Returns a string representation of this test element. (Inherited from TestElement.)

Top

Fields

  Name Description
Protected field m_abortRunOnAgentFailure Infrastructure. Returns the value of the AbortRunOnAgentFailure property. (Inherited from TestElement.)
Protected field m_agentAttributes Infrastructure. Returns the value of the AgentAttributes property. (Inherited from TestElement.)
Protected field m_cssIteration Infrastructure. Returns the value of the CssIteration property. (Inherited from TestElement.)
Protected field m_cssProjectStructure Infrastructure. Returns the value of the CssProjectStructure property. (Inherited from TestElement.)
Protected field m_deploymentItems Infrastructure. Returns the value of the DeploymentItems property. (Inherited from TestElement.)
Protected field m_description Infrastructure. Returns the value of the Description property. (Inherited from TestElement.)
Protected field m_enabled Infrastructure. Returns the value of the Enabled property. (Inherited from TestElement.)
Protected field m_executionId Infrastructure. Returns the value of the ExecutionId property. (Inherited from TestElement.)
Protected field m_hostData Returns the internal host data. (Inherited from TestElement.)
Protected field m_hostType Infrastructure. Returns the internal value of the HostType. (Inherited from TestElement.)
Protected field m_id Infrastructure. Returns the value of the Id property. (Inherited from TestElement.)
Protected field m_isGroupable Infrastructure. Returns the value of the IsGroupable property. (Inherited from TestElement.)
Protected field m_isRunOnRestart Infrastructure. Returns the value of the IsRunOnRestart property. (Inherited from TestElement.)
Protected field m_links The internal list of links in this test aggregation.
Protected field m_name Infrastructure. Returns the value of the Name property. (Inherited from TestElement.)
Protected field m_nonRunnableReason Infrastructure. Returns the value of the ErrorMessageForNonRunnable property. (Inherited from TestElement.)
Protected field m_owner Infrastructure. Returns the value of the Owner property. (Inherited from TestElement.)
Protected field m_parentExecutionId Infrastructure. Returns the value of the ParentExecId property. (Inherited from TestElement.)
Protected field m_priority Infrastructure. Returns the value of the Priority property. (Inherited from TestElement.)
Protected field m_projectData Infrastructure. Returns the value of the ProjectData property. (Inherited from TestElement.)
Protected field m_properties Infrastructure. Returns the value of the Properties property. (Inherited from TestElement.)
Protected field m_storage Infrastructure. Returns the value of the Storage property. (Inherited from TestElement.)
Protected field m_testCategories Infrastructure. Returns the value of the TestCategories property. (Inherited from TestElement.)
Protected field m_timeout Infrastructure. Returns the value of the Timeout property. (Inherited from TestElement.)
Protected field m_userData Infrastructure. Returns the value of the UserData property. (Inherited from TestElement.)
Protected field m_workItemIds Infrastructure. Returns the value of the WorkItemIds property. (Inherited from TestElement.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

TestElement

ITestAggregation

ITestElement

IVerifiable

IVisiblePropertyProvider