05-26-2008, 10:18 AM
Can you please tell me how can we associate and diassociate object repository programmatically?
|
Object Repository
|
|
05-26-2008, 10:18 AM
Can you please tell me how can we associate and diassociate object repository programmatically?
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 IfAnil. |
|
« Next Oldest | Next Newest »
|
| 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 |
|