Common Properties and Environment Variables
Common properties and environment variables include:
dts100
Common properties and environment variables include:
- HOT_DEPLOYPoints to a project-specific hotDeploy directory.
- LASTRESPONSEThe response to the last executed step.
- LISA_HOMEPoints to the install directory, and is automatically set. This value includes a final slash. To reference a directory such asexamples, specify:{{LISA_HOME}}examplesNo slash is needed before the directory name.
- LISA_HOSTThe name of the system on which the testing environment is running.
- LISA_JAVA_HOMEThe Java VM to use. Set this property only if you do not want to use the built-in VM. If Java is not installed,DevTestuses the bundled JRE it comes with. You also must rename the jre directory in the install directory to something like jre_notinuse.
- LISA_POST_CLASSPATHUsed to add information after theDevTestclasspath.DevTestdoes not use the OS environment CLASSPATH variable. To add your own JARs after theDevTestclasspath, use LISA_POST_CLASSPATH.
- LISA_PRE_CLASSPATHUsed to add information before theDevTestclasspath.DevTestdoes not use the OS environment CLASSPATH variable. To add your own JARs before theDevTestclasspath, use LISA_PRE_CLASSPATH.
- LISA_PROJ_NAMEThe name of the project to which the current document belongs. LISA_PROJ_NAME refers to the main calling test project.
- LISA_RELATIVE_PROJ_NAMEThe name of the project to which the current document belongs. LISA_RELATIVE_PROJ_NAME refers to the project for the currently executing test or subprocess. If the test does not call any subprocesses, LISA_PROJ_NAME and LISA_RELATIVE_PROJ_NAME are the same.
- LISA_PROJ_PATHThe fully qualified path of the project directory. The value is operating system-dependent. A backslash (\) is used as the separator character on Windows. A forward slash (/) is used as the separator character on other operating systems. The following example is based on a Windows installation:C:\Program Files\CA\DevTest\Projects\MyProjectThe one limitation to using LISA_PROJ_PATH in a Custom Java step is that the syntax {{LISA_PROJ_PATH}} is not supported. The Custom Java step invokes a Java compiler to compile the script and Java treats backslashes as escape characters in strings. Therefore, this specific string raises a compiler error. The workaround is to use LISA_PROJ_PATH as a variable. For example:File f = new File ( LISA_PROJ_PATH );
- LISA_RELATIVE_PROJ_PATHThe fully qualified path of the project directory of the currently executing test or subprocess. LISA_PROJ_PATH refers to the main calling test. See LISA_PROJ_PATH for details. If the test does not call any subprocesses, LISA_PROJ_PATH and LISA_RELATIVE_PROJ_PATH are the same.
- LISA_PROJ_ROOTThe fully qualified path of the project directory. The value is operating system-independent. A forward slash (/) is used as the separator character on all operating systems, including Windows. The following example is based on a Windows installation:C:/Program Files/CA/DevTest/Projects/MyProject
- LISA_RELATIVE_PROJ_ROOTThe fully qualified path of the project directory of the currently executing test or subprocess. LISA_PROJ_ROOT refers to the main calling test. See LISA_PROJ_ROOT for details. If the test does not call any subprocesses, LISA_PROJ_ROOT and LISA_RELATIVE_PROJ_ROOT are the same.
- LISA_PROJ_URLThe URL of the project directory. For example:file:/C:/Program%20Files/CA/DevTest/Projects/MyProject
- LISA_RELATIVE_PROJ_URLThe URL of the project directory of the currently executing test or subprocess. LISA_PROJ_URL refers to the main calling test. See LISA_PROJ_URL for details. If the test does not call any subprocesses, LISA_PROJ_URL and LISA_RELATIVE_PROJ_URL are the same.
- LISA_TC_PATHThe fully qualified path of the directory where the test case is located.
- LISA_TC_URLThe URL of the directory where the test case is located.
- LISA_USERThe user that loaded the test case.