Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Repository
#2
Solved: 11 Years, 4 Months ago 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


Messages In This Thread
Object Repository - by dbarori - 05-26-2008, 10:18 AM
RE: Object Repository - by avykunt - 05-26-2008, 01:22 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)