Micro Focus QTP (UFT) Forums
Retrieving GetTOProperty and GetROProperty - 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: Retrieving GetTOProperty and GetROProperty (/Thread-Retrieving-GetTOProperty-and-GetROProperty)



Retrieving GetTOProperty and GetROProperty - manmeet.singh81 - 06-07-2011

Hi Guys,

Can you please help me by providing examples for these methods?

1.GetTOProperty
2.GetROProperty
3.GetTOProperties
4.GetROProperties

Note: Please do not give example which will retrieve the value of the property in the way of messagebox.


I need to get those property values (Prior to run and After Run) in test results instead.

Explaining my scenario:

Code:
Dialog("Login").Activate
a = Dialog("Login").WinEdit("Agent Name:").GetTOProperty("text")
msgbox ("Test Object Property for Text is: ") &a

Dialog("Login").WinEdit("Agent Name:").Set "YourName"
b = Dialog("Login").WinEdit("Agent Name:").GetROProperty("text")
msgbox ("Run Time Object Property for Text is: ") &b


I need the same but instead of msgbox showing the property values, need those values in test results.


Any help on this much appreciated.

Thanks
MSB


RE: Retrieving GetTOProperty and GetROProperty - Jay - 06-08-2011

you can try:
Code:
Reporter.reportevent micPass, "Object Property", a
Reporter.reportevent micPass, "Object Property", b