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 are metrics and matrix?

0 Answers  


How can i initiate the objects to find uniquely in OR

0 Answers   IBM, Livetek,


What is the purpose of loading qtp add-ins?

0 Answers  


Tell some commonly used Excel VBA functions?

0 Answers  


What is obsolute path and relative path in QTP..? How to access them and what are the differences between them...??

3 Answers   Virtusa,






What is the Difference between Environment variable and Globle variable,.. anybody can give me answer..Thanks in advance...

4 Answers   IBM,


what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


how can we return a value from userdefined function for eg 2 functions in func1 iam getting 2 values(a,b) and storing in var(C). now i want to pass that var(c) to another func2 give me the script

1 Answers  


Tell about automation object model(Aom) in qtp?

6 Answers   GE,


Synchronozation types in QTP

11 Answers  


how can i add an action(external action) programmatically?

3 Answers   Ordain Solutions,


Hi All, I need Code For how to export Pass\Fail status to excell sheet without using QC. Thanks Balaji

3 Answers  


Categories