Micro Focus QTP (UFT) Forums

Full Version: Custom grids (ultimate) processing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to automate testing of C++ application using QTP.
There is critical problem I met - custom grids (ultimate grids) which are recognized by QTP as WinObject.

For example, when I'm clicking on some grid cell then QTP writes:
Code:
Window("app_name").Dialog("dialog_name").WinObject("AxxWnd50").Click 38,23


and I can not to get values from grid cells and write to them something...

Is there some possibility to resolve this problem?
For example write some plugin (like TestAdvantage for Infrognatiscs grids) to force QTP recognize the cells of custom grids and proceed with them.

Maybe there are some other convenient ways to resolve my problem...
Please help me!
Vesa -
Yes there are. Winobjects are the custom object recoginition by QTP. You can work with them by using the .object method if you know what are the custom objects and their behaviour.

For eg : On the dialog you mention it as a winobject...what is this object ?? is it a tab, checkbox?? if we consider it as a tab then we can try something like this,

Code:
a=Window("app_name").Dialog("dialog_name").WinObject("AxxWnd50").Object.Item(1).Text

If you want to work with custom objects then you will need to drill it further down to extract the information.

I can help you if you can provide the information about the object. remember SPY is the only one which is the key and vital part of identifying a custom object.
Unfortunately, Object method doesn't work for win32 (as I understood after reading of many QTP forums).
When I use .Object for grid QTP says that this method does't work for this object.
So this way is not applicable.

Thanks for your help!
Did you to try to virtualize the object ?? There got to be a method...Look into the spy...it will lead you through.

On the sidebar, visit www.advancedqtp.com & search for a topic called "automating custom sandribbon controls".

Unfortunately they are .Net controls, however i feel some lead is a good lead.