Micro Focus QTP (UFT) Forums
Object Spy not detecting items in C ICL - 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: Object Spy not detecting items in C ICL (/Thread-Object-Spy-not-detecting-items-in-C-ICL)



Object Spy not detecting items in C ICL - AndyBSG - 11-14-2014

Hi guys,

Complete newbie to QTP here and hoping someone can help.

We've just started using QTP to replace our outdated Winrunner but are having some problems.

Our system runs on a C front end and within some of the screens we have what Winrunner refers to as an ICL container.

Basically it's a table within the screen that has rows of data in of multiple columns.

When using QTP I need to be able to see whats in this area but under objects it just recognises the container as one object, not as separate objects for all the various headings, rows or columns contained inside it.

Anyone able to point me in the right direction to try and find a way round this problem?

Apologies if I seem a bit vague but i've literally just been thrown in the deep end and am having to learn VB script and QTP as I go along!


RE: Object Spy not detecting items in C ICL - rajupawar22 - 11-17-2014

Hey can you let me know what is class type QTP recognized for table object?
If possible, snapshot of object spy.


RE: Object Spy not detecting items in C ICL - AndyBSG - 11-17-2014

Hopefully this is what you're looking for?

It is recognised as a single object but it is in fact a table containing multiple columns and rows and I need to be able to access each of the individual rows and columns within it to retrieve data.

Thanks for any help you can offer.

Code:
"Class Name:=WinObject",
"abs_x:=662",
"abs_y:=652",
"attached text:=",
"enabled:=True",
"focused:=False",
"hashscroll:=False",
"hasvscroll:=False",
"height:=87",
"hscrollpagesize:=",
"hscrollposition:=",
"hwnd:=1901946",
"leftscrollbar:=False",
"maxhscrollpos:=",
"maxvscrollpos:=",
"minhscrollpos:=",
"minvscrollpos:=",
"nativeclass:=ICL Container LDetail",
"object class:=ICL Container LDetail",
"regexpwndclass:=ICL Container LDetail",
"regexpwndtitle:=",
"rightaligned:=False",
"righttoleftlayout:=False",
"righttoleftreading:=False",
"text:=",
"va_name:=",
"visible:=True",
"vscrollpagesize:=",
"vscrollposition:=",
"width:=809",
"window id:=32759",
"windowextendedstyle:=0",
"windowstyle:=1409286144",
"x:=42",
"y:=230"



RE: Object Spy not detecting items in C ICL - vinod123 - 11-19-2014

To study what is the reason behind unable to delete you send the screen shot image of the object spy so i may find solution to resolve your problem


RE: Object Spy not detecting items in C ICL - AndyBSG - 11-19-2014

Screenshot attached with the area in question highlighted in red.

The highlighted area usually contains rows of data but I cant get QTP to actually access the data in it


RE: Object Spy not detecting items in C ICL - AndyBSG - 11-28-2014

No response so assume this one had people stumped.

In the end we couldn't get around it in QTP so have had to call an external C function to retrieve the data and pass it back.