Variables can be declared in the following areas:
● Program, System and Driver modules Variables - These are global variables that normally accessed only from the module where they are declared. If a Driver or a System variable is declared as public the variable can be accessed from another module as well.
● Program Test Variables - these are test local variables for use only within the test. When the test starts these variables are created and initialized and when the test ends the variables are destroyed ATEasy 2024 (v13).
● Procedure Variables - these are procedure local variables, they are created and initialized when the procedure is called and destroyed when the procedure is returned. Procedure also has parameters variables that are used to pass data to/from the procedure.
● Form Variables- created when the form is loaded and destroyed when the form object is deleted.
To create, insert, and define a variable:
1. Click on the Variables submodule were you want to declare the variable. That could be in the Workspace window, Tests Variables View, Form Variables or Procedure Variables.
2. Insert a new variable by selecting the Variables submodule, right-clicking on it, and selecting Insert Object Below.
3. Define the variable name and other properties by selecting the Variables submodule, right-clicking on it, and selecting Properties from the context menu.
For information on the Variables View, see Variables View.