Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Repository
#7
Solved: 11 Years, 6 Months, 3 Weeks ago
vIns,

Does the statement "RepositoriesCollection.RemoveAll()" remove the currently loaded OR and "RepositoriesCollection.Add(strRepPath)" adds the one with my OR back in? Great!

I will try hopefully soon. I just am having issues building the OR with Navigate & Learn (F6).
vIns,

I added your code:
Code:
strRepPath = P:\QTP Tests\ObjectRepository\RepositoryCTE.tsr
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)
but I receive an RunError message box:
The test run cannot continue due to a syntax error.
Expected statement
Line (1):
Code:
"strRepPath = P:\QTP Tests\ObjectRepository\RepositoryCTE.tsr
Reply


Messages In This Thread
Object Repository - by mv8167 - 04-22-2011, 12:33 AM
RE: Object Repository - by A.Saini - 04-22-2011, 10:29 AM
RE: Object Repository - by mv8167 - 04-25-2011, 06:01 PM
RE: Object Repository - by Jay - 04-26-2011, 05:08 PM
RE: Object Repository - by mv8167 - 04-26-2011, 07:12 PM
RE: Object Repository - by vIns - 04-26-2011, 09:34 PM
RE: Object Repository - by mv8167 - 04-28-2011, 01:39 AM
RE: Object Repository - by vIns - 04-28-2011, 07:18 AM
RE: Object Repository - by mv8167 - 04-28-2011, 08:37 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)