Micro Focus QTP (UFT) Forums
can i directly use the Repository collection .add method? - 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: can i directly use the Repository collection .add method? (/Thread-can-i-directly-use-the-Repository-collection-add-method)



can i directly use the Repository collection .add method? - 1981.madhu@gmail.com - 09-17-2009

Hi Saket,
In my code ,can i directly use the Repository collection .add method?
Its throwing a error .

Can u describe me one simple example.I hav longin page of mercury (windows application).I hav OR in the destop.Hw can i add to that login action?


RE: can i directly use the Repository collection .add method? - azeem - 09-17-2009

Hi Madhu,

you can use it directly with below syntax:

RepositoriesCollection.Add("C:\Documents and Settings\aliazeemb\Desktop\OR.tsr")

Thanks,
Azeem


RE: can i directly use the Repository collection .add method? - Saket - 09-18-2009

Yes Madhu,
As Azzem already said, you can directly use the RepositoryCollection method.

what is the error you are receiving?
Can you please paste your lines of code as well?