Where can I get a list of all properties I can view using the method GetNAProperty for any given class or object? For example, I was interested in getting column header values in a grid, and I found on the forums that I could use the property GetNAProperty("DisplayLayout.Bands[0].Columns[X].Key"). Where do I find a list of these properties, or is there some tool I can use (like QTP Object Spy) to expose them?
Thanks
Hello,
QTP 9.5 provides .NET Windows Forms Spy, that you will see in Tools tab. This spy helps to some extent to know the propertis of UI elements. sometimes you may also have to take help from developers of the software if they are available. that helps in speeding up your work.
Here is some additional information that may help tie together Vince's and vidya12's responses.
If you use the Object Spy, the amount of properties that will be listed will be limited to top level properties. If you wanted to know what properties are available for any of the properties that are objects rather than simple types, you would need to use the NetAdvantage API documentation or ask your developers.
To determine what object you need to look for in the NetAdvantage API documentation, you can use the swftypename in the "Test Object Properties". For example if you were to use the Object Spy on the WinGrid, the swftypename is "Infragistics.Win.UltraWinGrid.UltraGrid".
The swftypename is the fully qualified name of the grid in .NET. In this case, "UltraGrid" is the class and is in the "Infragistics.Win.UltraWinGrid" namespace.
Note if the namespace doesn't begin with Infragistics, it is possible that the developers are using a derived control and you will still need to contact them to find out what control they derived from if you aren't certain.
Once you have the type, you still need to find it in the API documentation. To do this, you can use the following (still using the WinGrid as an example):
The steps for any of the other controls will be similar. In the above steps, 3 and 4 are similar; step 3 refers to the assembly and step 4 is the actual .NET namespace. In most cases, they will be the same.
Let me know if you have any questions with this matter.
Alan