Micro Focus QTP (UFT) Forums
Change Object Repository File Path for ExternalActions - 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: Change Object Repository File Path for ExternalActions (/Thread-Change-Object-Repository-File-Path-for-ExternalActions)



Change Object Repository File Path for ExternalActions - MasterChief - 11-13-2014

Hi,

I have been assigned the task to fix up a QTP setup done by an external company. There's a GUI test which has about 180+ External Actions each with associated repository .tsr files. The location of these .tsr files has been moved into a Git Branch and so I need to update each of the External Actions .tsrs to point to their new location on the file system.

Currently, I am getting 6 errors in the console saying "Missing Object Repository T354_Filter.tsr" etc as they are still referencing a path which no longer exists.

What's the best way to update the .tsr on the 180+ External Actions to point to their new location on the file system?

Thanks

Moderator Note: If you're new to git, learn git from scratch for free!


RE: Change Object Repository File Path for ExternalActions - vinod123 - 11-13-2014

If you know the path load the files dynamically using the below statement

Code:
RepositoriesCollection.Add <repository path>