Micro Focus QTP (UFT) Forums
Object Repository (.tsr) - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Object Repository (.tsr) (/Thread-Object-Repository-tsr)



Object Repository (.tsr) - shriqtp - 11-18-2009

Hi,

I am using following script to add .TRS file into the test:

Code:
Rep_Path = "C:\Shri OR\S1.tsr
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(Rep_Path)
Pos = RepositoriesCollection.Find(Rep_Path)
RepositoriesCollection.Remove(Pos)
RepositoriesCollection.Add(Rep_Path)

--> Sometimes it works fine i.e recognize an objects very quickly and
--> sometimes it takes long time to recognize objects....don't know why?

Can anybody please suggests any solution for this i.e any external settings requires or not?

Note: i don't want to use Associate Repository tool & DP

Please suggest....

Thanks
Shrini


RE: Object Repository (.tsr) - Saket - 11-19-2009

do you see a smart identification when it does not identify quickly? I think you need to regualarize your objects in the repository in order to avoid smart identication.


RE: Object Repository (.tsr) - shriqtp - 11-19-2009

Hi Saket,

Actually not getting what exactly you want to guide me
--> Can you please elaborate more with example OR can you please give some steps regarding that so that i will apply that into my test and will let you know.

Thanks
Shrini