Micro Focus QTP (UFT) Forums
Same login for all the test scripts - 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: Same login for all the test scripts (/Thread-Same-login-for-all-the-test-scripts)



Same login for all the test scripts - gamey06 - 05-16-2011

Hi,

Most of my 100 scripts use the same login and password. I am new to QTP. I would like to know if there is anyway I can create a script for login and use it in all the other scripts. The password changes frequently and it would be easy that way. Also I tried inserting the existing action while recording but it is not working.

Also the same script needs to be used for Developement, Test and Production servers. Is there anyway I can record a script and use it for all the servers.

Thanks in Advance.


RE: Same login for all the test scripts - Anand - 05-17-2011

Yes you can make login action as reusable and call it in other actions.