I am using QTP 11 and a Shared Object Repository.
While running my script for some reason it adds new objects then tries to use those objects in the Local Object Repository.
This is wrong and either causes my script to hang, crash or fail.
It only happens some times in different scripts. I haven't found a pattern or cause yet.
The only workaround fix I have is to each time go into my Local OR and delete all of the objects, which grays them out and rerun my script.
How can I keep this from happening?
Can I lock out or totally remove the Local OR?
Currently my scripts are associated with my Shared OR.
Something I had request during my Israel visit. It is really problematic when QTP without informing starts adding stuff to Local OR.
That is why I don't use Step generator to add objects. Rather I always drag and drop my objects from SOR or Available keywords view. If nothing is there then I add it manually to the SOR
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
Can u elaborate why this happens, I have not used OR extensively at all so may b a weird question.
Winds of Change
QTP 9 when restructured how ORs are used. Before QTP 9 it was possible to directly record to SOR. But from QTP 9 nothing can be recorded on SOR. It can only be recorded in LOR. So when you record everything goes into LOR if it is not present in SOR
How how do I force QTP to only use SOR all the time and not use or be able to manually delete my LOR?
Or is this just a limitation of QTP11?
By the way, Tarun, thanks again for your valuable feedback!!
This is a limitation. I had a discussion with HP on this and my suggestion to them were to be able to disable use of LOR using some setting and also possibility to record directly in SOR