Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Want to copy object from 1 repository to another
#1
Not Solved Exclamation 
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:
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(?????)
Can you guide how to proceed further.

Regards,
Amol
Reply
#2
Not Solved
go to resources menu > select object repository manager > open both repositories, and simply drag and drop the object from one to the other, and edit it's properties.
(do remember to enable the editing first for both repositories)
Reply
#3
Not Solved
@falvi

I want to do it programmatically.
Reply
#4
Not Solved
that'll be new for me as well... looking forward to see a solution... sorry can not be of help in this regard.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Do we need object repository?? subhashinid 0 1,945 07-06-2016, 10:07 AM
Last Post: subhashinid
  Object repository losing object properties ishan.mahajan@adp.com 2 3,730 08-20-2015, 11:33 PM
Last Post: ADITI1992
  login object not found in object repository Akram 2 3,095 06-01-2015, 07:47 PM
Last Post: babu123
  object was not found in the Object Repository reynard 0 6,815 03-17-2015, 10:54 PM
Last Post: reynard
  Change Object Repository File Path for ExternalActions MasterChief 1 4,635 11-13-2014, 06:05 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)