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

Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1515


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1459


What is the difference in the global and action sheet in qtp?

565


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1851


What is the latest version of qtp?

579






Why qtp the best testing tool?

558


I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?

1671


what you mean by artifact,milestone...

1492


How you can delete excel file in qtp?

591


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

567


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

1403


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1620


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

599


what is the frame work in J-meter?

1597


Explain the features and benefits of quick test pro(qtp)?

510