UITechnologyManager Class

Provides an abstract base class for technology managers that is used during test recording and playback.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyManager
    Microsoft.VisualStudio.TestTools.UITesting.UITechnologyManagerProxy

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
<GuidAttribute("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")> _
<ComVisibleAttribute(True)> _
Public MustInherit Class UITechnologyManager _
    Implements IUITechnologyManager
[GuidAttribute("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")]
[ComVisibleAttribute(true)]
public abstract class UITechnologyManager : IUITechnologyManager
[GuidAttribute(L"CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")]
[ComVisibleAttribute(true)]
public ref class UITechnologyManager abstract : IUITechnologyManager
[<AbstractClass>]
[<GuidAttribute("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")>]
[<ComVisibleAttribute(true)>]
type UITechnologyManager =  
    class 
        interface IUITechnologyManager 
    end
public abstract class UITechnologyManager implements IUITechnologyManager

The UITechnologyManager type exposes the following members.

Constructors

  Name Description
Protected method UITechnologyManager Initializes a new instance of the UITechnologyManager class.

Top

Properties

  Name Description
Public property TechnologyName Gets the technology name.

Top

Methods

  Name Description
Public method AddEventHandler Adds an event handler to this technology manager.
Public method AddGlobalEventHandler Adds a global event sink to this technology manager.
Public method CancelStep Cancels any wait or search operation that is currently being performed by this technology manager because of calls to WaitForReady or Search.
Public method ConvertToThisTechnology Takes an element from another technology and returns an element that is compatible for the current technology, along with the level of support it has for the converted element.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
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 GetChildren Returns an enumerator for the child elements in the given element.
Public method GetControlSupportLevel Returns the indication of confidence for this technology manager that it can support the control that is identified with the provided handle.
Public method GetElementFromNativeElement Returns an element from this technology that corresponds to the provided native element.
Public method GetElementFromPoint Retrieves the element that is located at the given screen coordinates.
Public method GetElementFromWindowHandle Retrieves the element that is identified by the provided window handle.
Public method GetFocusedElement Returns the windows pointer for the element that currently has the focus.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLastInvocationInfo Returns information about the last test action that was invoked by this manager.
Public method GetNextSibling Returns the next sibling of the given element in the UI hierarchy.
Public method GetParent Gets the parent of the given element in the UI hierarchy.
Public method GetPreviousSibling Returns the previous sibling of the given element in the UI hierarchy.
Public method GetSynchronizationWaiter Returns an IUISynchronizationWaiter by using the provided element and event type.
Public method GetTechnologyManagerProperty Returns the value of the given property of this technology manager.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MatchElement Returns a value that indicates whether the provided element matches the previously parsed query ID cookie.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ParseQueryId Parses the provided string representation of a query element and returns a string representation of the query element as a cookie.
Public method ProcessMouseEnter Processes the mouse enter event for the specified window or control.
Public method RemoveEventHandler Removes the specified event from the given element and all its descendents.
Public method RemoveGlobalEventHandler Removes the specified event.
Public method Search Searches for an element in the parent element that matches the condition of the provided query ID cookie.
Public method SetTechnologyManagerProperty When implemented in a derived class, sets the value of the given property in this technology manager.
Public method StartSession Performs any initialization that is required by this technology manager to start a session.
Public method StopSession Performs any cleanup required by this technology manager to stop the current session.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

If you need to extend the coded UI testing framework to support a currently unsupported technology, you would need to derive your own version of this class. For example, Microsoft Excel is not natively supported by the coded UI testing framework, but by using Visual Studio 2010 Ultimate or Visual Studio 2010 Premium, you can create an extension that enables you to test Microsoft Excel Worksheets. For more information, see Extending Coded UI Tests and Action Recordings to Support Microsoft Excel.

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.UITest.Extension Namespace

IUITechnologyManager

UITestExtensionPackage

Other Resources

Extending Coded UI Tests and Action Recordings to Support Microsoft Excel