Micro Focus QTP (UFT) Forums
Custom grids (ultimate) processing - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Custom grids (ultimate) processing (/Thread-Custom-grids-ultimate-processing)



Custom grids (ultimate) processing - vesa - 06-17-2009

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!


RE: Custom grids (ultimate) processing - basanth27 - 07-03-2009

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.


RE: Custom grids (ultimate) processing - vesa - 07-03-2009

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!


RE: Custom grids (ultimate) processing - basanth27 - 07-03-2009

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.