Share via


CodedUITestAttribute Class

 

Used to activate the extension so that we recognize a class as Unit Test extension class. Use [CodedUITest] attribute in test class to indicate that it is a Coded UI Test

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

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.TestTools.UnitTesting.TestClassExtensionAttribute
      Microsoft.VisualStudio.TestTools.UITesting.CodedUITestAttribute

Syntax

[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class CodedUITestAttribute : TestClassExtensionAttribute
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
public ref class CodedUITestAttribute sealed : TestClassExtensionAttribute
[<Sealed>]
[<SerializableAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
type CodedUITestAttribute = 
    class
        inherit TestClassExtensionAttribute
    end
<SerializableAttribute>
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)>
Public NotInheritable Class CodedUITestAttribute
    Inherits TestClassExtensionAttribute

Constructors

Name Description
System_CAPS_pubmethod CodedUITestAttribute()

Initializes a new instance of the CodedUITestAttribute class.

System_CAPS_pubmethod CodedUITestAttribute(CodedUITestType)

Properties

Name Description
System_CAPS_pubproperty ExtensionId

Gets the universal resource indicator (URI) for the coded UI test.(Overrides TestClassExtensionAttribute.ExtensionId.)

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Determines whether the test class extension object is equal to the provided test class extension object.(Inherited from TestClassExtensionAttribute.)

System_CAPS_pubmethod GetClientSide()

Returns an object that represents the client side of the Coded UI Test.(Overrides TestClassExtensionAttribute.GetClientSide().)

System_CAPS_pubmethod GetExecution()

Returns an object that implements events for unit test events.(Overrides TestClassExtensionAttribute.GetExecution().)

System_CAPS_pubmethod GetHashCode()

Returns the hash code for the ID of the test class extension object.(Inherited from TestClassExtensionAttribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

(Inherited from Attribute.)

Remarks

No content here will be updated; please do not add material here.

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

Microsoft.VisualStudio.TestTools.UITesting Namespace

Return to top