| |
GeekInterview.com > Interview Questions > Testing Tools > QTP
| Print | |
Question: Parametrize through environment
Answer: How to parametrize through environment. Please use a suitable example. |
| January 01, 2009 01:42:52 |
#2 |
| mathan_vel |
Member Since: December 2007 Total Comments: 350 |
RE: Parametrize through environment |
Quick Tests can insert a value from the Environment variable list, which is a list of variables and corresponding values that can be accessed from your test. Throughtout the test run, the value of an environment variable remains the same, regardless of the number of iterations, unless the change the value of the cariable programmatically in scripts.
There are three types of environment variables
->User Defined Internal: Variables that you define within the test. These variables arre saved with the test and are accessible only within the test in which they were defined.
You can create or modify internal, user-defined environment cariables for your test in the environment tab of the Test settings dialog or in the Parameter Options dialog box.
-> User-Defined External-Variables that you predefine in the active external envronment variables file. You can create as many files as you want and select an appropriate file for each test, or change files for eachtest run. Note that external environment variable values are designated as read-only within the test
->Built-In- Variables that represent information about the test and the computer on which the test is run, such as test path and Operating system. These variables are accessible from all tests and components, and are designates as read-only. |
| |
Back To Question | |