Export (0) Print
Expand All

UITechnologyManager Class

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

System::Object
  Microsoft.VisualStudio.TestTools.UITest.Extension::UITechnologyManager

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

[ComVisibleAttribute(true)]
[GuidAttribute(L"CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")]
public ref class UITechnologyManager abstract : IUITechnologyManager

The UITechnologyManager type exposes the following members.

  NameDescription
Protected methodUITechnologyManagerInitializes a new instance of the UITechnologyManager class.
Top

  NameDescription
Public propertyTechnologyNameGets the technology name.
Top

  NameDescription
Public methodAddEventHandlerAdds an event handler to this technology manager.
Public methodAddGlobalEventHandlerAdds a global event sink to this technology manager.
Public methodCancelStepCancels any wait or search operation that is currently being performed by this technology manager because of calls to WaitForReady or Search.
Public methodConvertToThisTechnologyTakes 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 methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetChildrenReturns an enumerator for the child elements in the given element.
Public methodGetControlSupportLevelReturns the indication of confidence for this technology manager that it can support the control that is identified with the provided handle.
Public methodGetElementFromNativeElementReturns an element from this technology that corresponds to the provided native element.
Public methodGetElementFromPointRetrieves the element that is located at the given screen coordinates.
Public methodGetElementFromWindowHandleRetrieves the element that is identified by the provided window handle.
Public methodGetFocusedElementReturns the windows pointer for the element that currently has the focus.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLastInvocationInfoReturns information about the last test action that was invoked by this manager.
Public methodGetNextSiblingReturns the next sibling of the given element in the UI hierarchy.
Public methodGetParentGets the parent of the given element in the UI hierarchy.
Public methodGetPreviousSiblingReturns the previous sibling of the given element in the UI hierarchy.
Public methodGetSynchronizationWaiterReturns an IUISynchronizationWaiter by using the provided element and event type.
Public methodGetTechnologyManagerPropertyReturns the value of the given property of this technology manager.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodMatchElementReturns a value that indicates whether the provided element matches the previously parsed query ID cookie.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodParseQueryIdParses the provided string representation of a query element and returns a string representation of the query element as a cookie.
Public methodProcessMouseEnterProcesses the mouse enter event for the specified window or control.
Public methodRemoveEventHandlerRemoves the specified event from the given element and all its descendents.
Public methodRemoveGlobalEventHandlerRemoves the specified event.
Public methodSearchSearches for an element in the parent element that matches the condition of the provided query ID cookie.
Public methodSetTechnologyManagerPropertyWhen implemented in a derived class, sets the value of the given property in this technology manager.
Public methodStartSessionPerforms any initialization that is required by this technology manager to start a session.
Public methodStopSessionPerforms any cleanup required by this technology manager to stop the current session.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

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

Community Additions

ADD
Show:
© 2014 Microsoft