Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Repository
#1
Can you please tell me how can we associate and diassociate object repository programmatically?
Reply
#2
Shy 
Code:
Set App=CreateObject("QuickTest.Application") ' Creating an Application Object Set ORS=App.test.Actions("Action1").ObjectRepositories ' Get the Object repository collection of the Action called Action1 '**********************ASSOCIATING OR*********************** If ORS.find("C:\ObjectRepositoryfile.tsr")=-1 Then 'If the specified repository is not found in the Object Repository collection of Action1 then ORS.add("C:\ObjectRepositoryfile.tsr") ' Associate this Shared Object Repository to the Object Collection of Action1 End If '**********************DIASSOCIATING OR********************* If ORS.find("C:\ObjectRepositoryfile.tsr")<>-1 Then 'If the specified repository is found in the Object Repository collection of Action1 then ORS.Remove("C:\ObjectRepositoryfile.tsr") ' Remove this Shared Object Repository from the Object Collection of Action1 End If
Regards,
Anil.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)