How to convert QTP's ObjectRepository.mdb file to xml file

Answer Posted / elango

First of all the extension is of object repository is .tsr (test script repository) and not .mdb(This denotes microsoft access database file).

Below is the code to convert tsr file to xml in runtime,

Dim ObjRep
Set ObjRep = CreateObject("Mercury.ObjectRepositoryUtil")
ObjRep.ExportToXML "D:\test.tsr","D:\test.xml"
Set ObjRep = Nothing

You can also convert it manually by loading the corresponding object repository in "Resources -> Object Repository Manager" and selecting "File -> Export to XML" option.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss quicktest professional environment?

779


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

3168


Generic function to search for the unique link in webtable and click on it

2735


What are the methods of the TextStream object that are used for reading from a text file?

1877


How to integrate the qualitycenter with qtp

1971


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

3016


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1651


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1705


hi nani my doubt is how does qtp process metrix related to software process.

1744


How to capture a window in QTP?

1710


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1582


What is the registration process and examination fees?

749


How are actions and functions different in QTP?

848


Tell some commonly used Excel VBA functions?

797


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1695