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

hi Action 1 and action2 if we save it in C:, what folders will be created explain plz

3 Answers   iFlex,


Hi,All How to create a link in excel sheet using qtp

0 Answers  


What is contained in the object repository?

0 Answers  


what is purpose of automation?

3 Answers  


Differentiate the two Object Repository Types of QTP.

5 Answers  






How many types of Parameters are available in QTP? and Pls Explain with example.

4 Answers   LG Soft,


how can i call function (which has link with excell sheet at a remote location) within another function

0 Answers  


Can we use index on view?

0 Answers   Wipro,


difference between GetROProperty and GetTOProperty

3 Answers   Wipro,


Differences between text and test area checkpoints?

0 Answers  


HOW TO DO THE BATCH TESTING USING QTP?

2 Answers   Ordain Solutions,


Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP

1 Answers   HP,


Categories