Micro Focus QTP (UFT) Forums
Updating Shared repository - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Updating Shared repository (/Thread-Updating-Shared-repository)



Updating Shared repository - vinod_3466 - 02-03-2013

Hi All,

I have created a shared repository merging few Local Repositories.

Now if i change the object name in the shared repository, will the object name in the script change accordingly?

I have associated the shared repository to all the scripts.

Please help me with the procedure to do so if it is possible.


RE: Updating Shared repository - ravi.gajul - 02-04-2013

Open the shared repository from 'Object Repository Manager'( resources->Object repository manager--open the .tsr file) and then click file->Enable editing to edit the shared repository. Any changes you make here will reflect in all the scripts where ever the repository is associated. yes, When you change the logical name, the change takes place in script accordingly..


RE: Updating Shared repository - vinod_3466 - 02-04-2013

Thanks Ravi for your reply.

But the changes get updated only on the script which is open.

It does not get updated on the scripts which are not currently open but the Shared OR is associated to it.

Is there any workaround to achieve the same?


RE: Updating Shared repository - Ankesh - 06-29-2016

Try to run the script in maintenance run mode:

Maintenance Run Mode helps you maintain your Quick Test tests when your Application Under Test (AUT) changes. Maintenance Run Mode runs while QTP/UFT steps through your test. It points out where object recognition has failed, and then it helps you make the necessary changes to your script and Object Repository (O. R.). Maintenance Run Mode is like a magic little friend, or even a wizard helping you make sure your scripts always identify your objects correctly.

Maintenance Run Mode is especially useful when you receive the error message, “Cannot identify the object <<insert your object name here>>”. When you receive this error message, just launch into Maintenance Run Mode (and get those magnets ready!)