QTP中隐藏的环境变量

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)




posted on 2011-04-03 20:05  TIB  阅读(449)  评论(0编辑  收藏  举报

导航