Micro Focus QTP (UFT) Forums
object spy - internal properties - 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 - internal properties (/Thread-object-spy-internal-properties)



object spy - internal properties - learner1 - 12-11-2009

while we spy an object then we can see two optons Run-time object properties and test objct properties
Test object properties are accessed using GETRO for runtime values
run -time object properties are accessed using object. properties

Here I added the "Checked" property in the objectIdentification for WEBEDIT and then spyed the objects
I am able to see "Checked" propoerty in both option of object spy(i.e run-time object properties and test objct properties )
But the values are differentr
In run-time object properties => Checked = False
In Test object properties => Checked = <NULL/Nothing>

why is it so happening. can anybody help me
actually i hope i have not understood the conccept of Internal properties of the object


RE: object spy - internal properties - upadhyay40 - 12-12-2009

Hi Learner1,

Basically you would use GetROProperty to get the value of an object property during runtime, such as the current list/combo item selection, or the text in a WebEdit, or the size of an object (width & height).

The GetTOProperty returns the value of the property from the test object's description, i.e., the value used by QTP to identify the object. If the property is not part of the test object's description, a warning will be issued by QTP.

Please let me know if you need more help.

Thanks

Mahesh


RE: object spy - internal properties - learner1 - 12-14-2009

Thanks for the Reply mahesh
i am much satisfied wid the concept u explained