06-01-2012, 03:13 PM
Hi All,
I am new to QTP.
I want to copy object from one repository ;edit its properties and add it to another repository.
In QTP editor I have added the following code:
Can you guide how to proceed further.
Regards,
Amol
I am new to QTP.
I want to copy object from one repository ;edit its properties and add it to another repository.
In QTP editor I have added the following code:
Code:
Dim RepositoryFrom, RepositoryTo
Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")
Set RepositoryTo = CreateObject("Mercury.ObjectRepositoryUtil")
RepositoryFrom.Load "C:\QuickTest\Tests\Flights.tsr"
RepositoryTo.Load "E:\Temp\Tests\Default.tsr"
RepositoryFrom.copyObject(?????)
Regards,
Amol