Micro Focus QTP (UFT) Forums
How to transfer Repository from one script to another script? - 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: How to transfer Repository from one script to another script? (/Thread-How-to-transfer-Repository-from-one-script-to-another-script)



How to transfer Repository from one script to another script? - vinaykumar28 - 06-11-2008

I have recorded one TC in two differnt script. Now I have pasted script 2 to script 1, script 1 is running fine but from the line where script 2 starts, it is not able to recognize parent property (Browser).
I feel this is a repository issue.

So guide me how to transfer the repository from script 2 to script 1.

Thanks you.
Regards,
Vinay Kumar.


RE: How to transfer Repository from one script to another script? - niranjan - 06-11-2008

Just pasting your script will not work. QTP must be able to identify your application objects. In order to make QTP identify objects, you must associate the script with its Object repository.

Whats the version of QTP you are using?
If it is 9X then you can merge the Object Repositories.


RE: How to transfer Repository from one script to another script? - vinaykumar28 - 06-12-2008

I totaly understand that the script will not work if only pasted the script, but i do not know how to import an Repository form on script to another script. I very well know to export as there is a button to export on "Object Reporitory" window.

The current version i am using is 8.2.


RE: How to transfer Repository from one script to another script? - niranjan - 06-13-2008

I am not sure what you are looking for will work with 8.2.
Instead of pasting your script, you can use Actions.

You can call your second script if it is under a separate action. Think about it.