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

Thanks....But can u tell me how i use the QTP for GIS with one Example...

0 Answers  


i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script... i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

2 Answers   Accenture,


What is the difference between local and shared object repository in qtp?

0 Answers  


Hi any body can tell me the synchranization point syntax thanks in advance

6 Answers   AppLabs,


what is the difference between parameters and arguments?

1 Answers  


How to create frame work for qtp?

1 Answers   Bank Of America, Polaris,


How to save your test using quicktest professional?

0 Answers  


How the smart identification is used in real time?Please explain with an example

0 Answers   Wipro,


can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance

0 Answers  


How you can write contexts to text file in qtp?

0 Answers  


Does QTP recognize two diff browser's at a time..?if possible how..? Is it possible run scripts on Mozilla which are recorded on IE..?..How..?

12 Answers   IBM, Semantic Space, TCS,


Can anyone tell me about "Step- By Step Paramterization". among the two paramaterizations, Step by step and Parameterize All, which one is mostly used.

0 Answers  


Categories