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



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

Answer / 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

More QTP Interview Questions

What is the script for database check point, bitmapchek point, regular expression ?

0 Answers  


what is the smart identification techniqu?what r the different mechanisums used in it?

0 Answers   Accenture,


How can you handle exceptions in qtp?

0 Answers  


A web page title might be xxxx@xyz.com or xxxy@xxx.co or xyz@abc.in.Using what mandatory properties can be the page identified.Give the regular expression for that.

3 Answers   Virtusa,


How to change the run-time value of a property for an object in QTP?

4 Answers  






what properties do use to identify a browser and page while using descriptive programming?

3 Answers   TCS,


What is difference between shared and local object repository?

0 Answers  


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

0 Answers  


What is the "Release Notes", what it cosists? Key components in Release Notes ?

2 Answers  


How to call a test from another test?

0 Answers  


For what purpose to we use object repository in a application?also explain usage of obj.repository?

3 Answers  


What are the advantages of QTP over WinRunner?

5 Answers   CTS,


Categories