QTP中隐藏的环境变量
时间:2011-04-03 来源:TIB
QTP的环境变量分为Built in和User Define两类,在内建的环境变量中,有些环境变量并没有列出来,例如:EXE_ENV_1、LNCH_ENV_1、CHLD_ENV_1等。
To use environment variables to define the details for Windows applications on which you want to record and run tests, you must use the appropriate variable names as specified below:
Option |
Variable Names |
Description |
---|---|---|
Application | EXE_ENV_1 ... EXE_ENV_10 | The executable files on which QuickTest records operations when record and run sessions begin. You can specify up to ten executable files. |
Working folder | DIR_ENV_1 ... DIR_ENV_10 | The folder to which the corresponding executable file refers (for each corresponding application). |
Program arguments | ARGS_ENV_1 ... ARGS_ENV_10 | The command line arguments to be used for the specified application (for each corresponding application). |
Launch application | LNCH_ENV_1 ... LNCH_ENV_10 |
Whether to open the application when starting the record and run session (for each corresponding application).
Possible values: 0 (do not launch the application) 1 (launch the application) |
Include descendant processes | CHLD_ENV_1 ... CHLD_ENV_10 |
Whether to record and run on processes created by the application during the record and run session (for each corresponding application).
Possible values: 0 (do not record on descendant processes) 1 (record descendant processes) |
相关阅读 更多 +