Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameters - Is it possible to specify a parameter's path?
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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!

Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Debby,
This can be done from User-Defined Environment variables.
Test Settings --> Environment tab - Load variables and values from external file checkbox.
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Hello Manishbhalshankar,

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Set data parameters Mik2s 1 1,258 03-07-2019, 10:18 PM
Last Post: supputuri
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,772 11-30-2017, 02:21 AM
Last Post: supputuri
  Path of Flight reservation Window is not recorded in HP UFT 12.52 version mailtokopalverma@gmail.com 1 2,389 04-01-2016, 05:34 PM
Last Post: vinod123
  X path Identification vasavi.vasavi 1 2,692 07-29-2015, 10:44 AM
Last Post: kbhargava505
  environment variable path for qc automation2012 0 2,627 01-18-2015, 08:18 AM
Last Post: automation2012

Forum Jump:


Users browsing this thread: 2 Guest(s)