Hi All,
I am working on remote machines which ahas QTP 11.0.There when i am trying to run exporttoxml statment getting "Exception has been thrown by the target of an invocation" exception.Although in local machine it is working fine.
Here is the code:
Set Repository1 = CreateObject("Mercury.ObjectRepositoryUtil")
RepPath=PathFinder.Locate(strRepositoryFile)
RepXmlPath=Replace(RepPath,".tsr",".xml")
Repository1.ExportToXML RepPath,RepXmlPath
Please let me know if anybody has a solution for this issue.
Thanks,
Swati