Micro Focus QTP (UFT) Forums
Parameters - Is it possible to specify a parameter's path? - 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: Parameters - Is it possible to specify a parameter's path? (/Thread-Parameters-Is-it-possible-to-specify-a-parameter-s-path)



Parameters - Is it possible to specify a parameter's path? - Debby Browne - 01-14-2011

I would like to be able to specify an absolute path to a parameter, so that it's value can be changed without having to open the test itself. Is it possible to do this with QTP? If not is there another mechanism for passing in information from the local file system of the user running a test?

We use Service Test (another HP tool) for testing web services and that allows us to specify the file system path to the parameter. It is very useful for allowing each tester to define values to be used a particular test run of multiple tests, and not have to modify the tests themselves.

The reason we want to do that in this instance is to parameterize the URL of the portal we are testing. We have the same portal deployed on different servers, hence different URLs. That way each tester can simply change the value of the parameter one time (in his/her local file system) and have any test that uses that parameter run against whichever portal he/she wants to test - without having to open and modify the test itself - and at the same time a different tester can have the path set in HIS file system to use a different URL, so he can run instances of the same tests against a different server.

Thanks in advance for any responses!




RE: Parameters - Is it possible to specify a parameter's path? - manishbhalshankar - 01-14-2011

Hi Debby,
This can be done from User-Defined Environment variables.
Test Settings --> Environment tab - Load variables and values from external file checkbox.


RE: Parameters - Is it possible to specify a parameter's path? - Debby Browne - 01-19-2011

Hello Manishbhalshankar,

Thanks for your response! Yes, this is very useful and exactly what I was looking for. Thank you!