I came to know that we can parameterize the URL and login credentials(user name & password) using .inf files. Please help me in doing the same.
I have 8 urls and different credentials to login into the application.
I will list all the 8 urls and credentials in the login file(.inf file), where all the 8 URLs and credentials would be commented(made null) by default)
User willing to access the URL and credentials would UNCOMMENT them in the .inf file and get started.
I want to know how can I do it in QTP 9.5, when I execute the script only the UNCOMMENTED urls and set of credentials shall be used in accessing the application from the QTP script.
Re: How to Parameterize the URL and Username/Password
Ask your lead what is the objective?
May be he wants you to define the URLs and credentials in an environment file.
See the attached file (config.txt which can be renamed to .inf too) which has the environment variables for URL/Login. Enter the other URLs that you want and comment as required. You can call this file in your QTP script as below-