GetTo and GetROProerty are geeting property values from Object Repository in QTP?

14 views
Skip to first unread message

mallikarjunarao

unread,
Sep 9, 2010, 7:32:42 AM9/9/10
to QTP - HP Quick Test Professional - Automated Software Testing
GetToProerty and GetROProerty are geeting property values from OR in
QTP, i get below line from QTP help

'The following example uses the GetTOProperty method to retrieve
the 'RegExpWndClass property from the Object Repository.

now i am using test script using DP, when i am getting text property
of an object it shows empty [IN Flight Application the order is
successfully inserted]

insertValue = Window("text:= Flight
Reservation").WinEdit("attachedText:= Order
No:").GetTOProperty("text")

Is Really get the GetToProperty from Object Repository? How go get the
property values in DP.

Kiran Paul Kanikaram

unread,
Sep 9, 2010, 8:14:33 AM9/9/10
to mercu...@googlegroups.com
Hi,

GetROProperty is used to retreive the value of a run time object. I do not think that it will fetch values from OR.

To capture the value of a dynamic object in a web application GetROProperty method is executed. In order to capture the value of an object and that too of a dynamic object then we will use the GetROProperty which means Get Run Time Object Property and we need to decide which property we want to capture.

From the above script you mentioned

 insertValue = Window("text:= Flight Reservation").WinEdit("attachedText:= Order
No:").GetTOProperty("text")

Here insertvalue variable is assigned the run time object property value which is generated and stores in the insertvalue variable. so if the script is run each time the value gets changed.

Kiran Paul

Read more: http://qtp4free.blogspot.com/2010/06/how-to-capture-dynamically-changing.html#ixzz0z29LZESN


--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply all
Reply to author
Forward
0 new messages