Micro Focus QTP (UFT) Forums
Object Description - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Object Description (/Thread-Object-Description)



Object Description - Automation_QA - 07-01-2010

Hi Every1

I need to have the descriptive details of all the objects in OR and have to write in an excel sheet. Can anyone suggest me the best way to do it.
For Eg there is a weblink "XYZ" in OR and its description is as below :
Code:
Browser("name:=abc").Page("name:=abc").WebLink("name:=XYZ")

So for every object i have to write it description in my excel sheet which will work as Application Map.

Thanks in Advance.


RE: Object Description - sreekanth chilam - 07-01-2010

Hi,

Use GetTOProperties() to retrieve the collection of Property values of Test Object in Obj. Repo and post them into Excel.

Refer the below example:

Code:
Set LinkProp=Browser("Abc").Page("Abc").Link("test").GetTOProperties()
For i=0 to LinkProp.count-1
        msgbox LinkProp(i)    ' post this value into Excel
Next