System Variables

System variables are predefined variables that PTF populates at runtime. System variables provide data about the current environment, runtime options, test, and application.

Because system variables are replaced with a text string at runtime, you can place a system variable wherever you would place a text string. Commonly, test developers assign a system value to a user-defined variable.

The following example shows two methods of assigning system variables to user-defined variables:

This example illustrates 2 methods for assigning system variables to user-defined variables.

Example of using system variables

Related Topics