Archive for category Visual Studio 2010 UITest Extensions
The Problem One of the biggest problems I faced when creating a UI Test Extension how does the extension communicate with the application you are testing. For me there were 2 major boundaries I had to cross. · Interprocess communication · Technology Boundary After a lot of research I kept hitting the issue that I […]
The TechnologyName property is simple a way to identify the technology that the extension is targeted at. Because this extension is for VB6 that’s what i am going to give as the technology name
Any class that extends the UITechnologyManager class is required to be visible to the COM. This is done via the ComVisible Attribute. This attribute is part of the System.Runtime.InteropServices namespace
AddEventHandler/RemoveEventHandler – These methods are called buy the UI Test Framework before and after recording to allow you to set up event handlers for the technology that will be used by your plugin. AddGloablEventHandler/RemoveGlobalEventHandler – These methods are also used in the recording process to allow your plugin the ability to wire up system wide […]
So I have an odd issue today that’s worth noting. First I had an issue where a style could not be found. I fixed the issue but still had the same exception saying the style could not be found. After a lot of checking we realised the Silverlight project that was being loaded as the […]
StartSession – Performs any initialization required by this technology manager for starting a session. It takes a Boolean that indicates if the current session is a recording session, a playback session will be false. StopSession – Performs any cleanup required by this technology manager for stopping the current session.
Search – Searches for an element matching the given query element. If the underlying UI Technology has rich APIs to search/navigate the UI hierarchy then implementing this method could improve the playback performance significantly. This is an optional method and if the technology manager does not support this method it should throw System.NotSupportedException exception. If […]