View the list of methods of a .NET Control
March 5, 2010 at 10:51 am | Posted in Test Automation | Leave a commentWhile Automating .NET based applications, we might some times require to access the methods exposed by the controls directly from UTP. For viewing the various methods which a control exposes, in UTP, we have a DotNet class Viewer which shows the list of all the methods of a control.
Here are the steps to view the .NET methods.
- Invoke the Interface Driver (SDTIDE).
- Open the GUI Mapper and capture any .NET application.
- Select a control from the list of captured controls and select the Property button.
- A new window opens with all the supported methods within it.
- We should copy and paste the methods in the DotNet Class View window to see the internal supported methods. Copying is possible by double clicking on the required method.
In the below figure, we can see the GUI Mapper window which is having a sample .NET captured application and saved as a new GUI Map File under a Project,
Getting methods for a control is a very easy process in UTP. All the supported .NET methods will be displayed as a separate window by selecting the control and pressing the ‘Property’ button in the GUI Mapper window.
The below image shows a list of ‘Methods’ displayed for a .NET control (Combo Box). We can also view the supported ‘Fields’ and ‘Properties’ by selecting the corresponding radio buttons in the below window.
If the return type of the method is an object of a particular class and if its list of methods is to be determined, you can copy its Return Type and paste it in the “Class Name:” edit box of the ‘DotNet Class View’ available in the GUI Mapper File menu.
Figure shows the ‘DotNet Class View’ menu option in the GUI Mapper.
Copying of a Return Type is also possible by clicking on a method displayed.
Ex: For example, copied method is “public System.Windows.Forms.AccessibleObject get_AccessibilityObject()”. You can view the methods of the ‘Return Type’ “System.Windows.Forms.AccessibleObject” after pasting it in the Class Name: edit box.
Leave a Comment »
RSS feed for comments on this post. TrackBack URI
Leave a Reply
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.


