UITechnologyManager Class
Provides an abstract base class for technology managers that is used during test recording and playback.
Inheritance Hierarchy
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)
Syntax
'Declaration
<ComVisibleAttribute(True)> _
<GuidAttribute("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")> _
Public MustInherit Class UITechnologyManager _
Implements IUITechnologyManager
[ComVisibleAttribute(true)]
[GuidAttribute("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")]
public abstract class UITechnologyManager : IUITechnologyManager
[ComVisibleAttribute(true)]
[GuidAttribute(L"CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")]
public ref class UITechnologyManager abstract : IUITechnologyManager
[<AbstractClass>]
[<ComVisibleAttribute(true)>]
[<GuidAttribute("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")>]
type UITechnologyManager =
class
interface IUITechnologyManager
end
public abstract class UITechnologyManager implements IUITechnologyManager
The UITechnologyManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UITechnologyManager | Initializes a new instance of the UITechnologyManager class. |
Top
Properties
Name | Description | |
---|---|---|
TechnologyName | Gets the technology name. |
Top
Methods
Name | Description | |
---|---|---|
AddEventHandler | Adds an event handler to this technology manager. | |
AddGlobalEventHandler | Adds a global event sink to this technology manager. | |
CancelStep | Cancels any wait or search operation that is currently being performed by this technology manager because of calls to WaitForReady or Search. | |
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. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChildren | Returns an enumerator for the child elements in the given element. | |
GetControlSupportLevel | Returns the indication of confidence for this technology manager that it can support the control that is identified with the provided handle. | |
GetElementFromNativeElement | Returns an element from this technology that corresponds to the provided native element. | |
GetElementFromPoint | Retrieves the element that is located at the given screen coordinates. | |
GetElementFromWindowHandle | Retrieves the element that is identified by the provided window handle. | |
GetFocusedElement | Returns the windows pointer for the element that currently has the focus. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLastInvocationInfo | Returns information about the last test action that was invoked by this manager. | |
GetNextSibling | Returns the next sibling of the given element in the UI hierarchy. | |
GetParent | Gets the parent of the given element in the UI hierarchy. | |
GetPreviousSibling | Returns the previous sibling of the given element in the UI hierarchy. | |
GetSynchronizationWaiter | Returns an IUISynchronizationWaiter by using the provided element and event type. | |
GetTechnologyManagerProperty | Returns the value of the given property of this technology manager. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MatchElement | Returns a value that indicates whether the provided element matches the previously parsed query ID cookie. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ParseQueryId | Parses the provided string representation of a query element and returns a string representation of the query element as a cookie. | |
ProcessMouseEnter | Processes the mouse enter event for the specified window or control. | |
RemoveEventHandler | Removes the specified event from the given element and all its descendents. | |
RemoveGlobalEventHandler | Removes the specified event. | |
Search | Searches for an element in the parent element that matches the condition of the provided query ID cookie. | |
SetTechnologyManagerProperty | When implemented in a derived class, sets the value of the given property in this technology manager. | |
StartSession | Performs any initialization that is required by this technology manager to start a session. | |
StopSession | Performs any cleanup required by this technology manager to stop the current session. | |
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
Other Resources
Extending Coded UI Tests and Action Recordings to Support Microsoft Excel