A procedure is a set of instructions that works as a unit and can be called from a test or another procedure. This chapter describes ATEasy user-defined procedures and includes the following topics:
Topic |
Description |
Introduces the different types of procedures and especially user-defined procedures which are discussed in this chapter. |
|
Describes the various parts of a Procedures View: the Procedures Combo Box, the Procedure Description View, the Variables View, and the Code View. |
|
Shows how to create procedures, define their properties, and use procedure variables. |
|
Describes the fields on the General Page of the Procedure Properties Window. |
|
Explains the types of value a procedure can return: a subroutine procedure returns no value; a function procedure returns a value. |
|
Describes how to declare procedure variables (parameters and local variables) in the Variables View of the Procedures View. |
|
Shows how to define a local variable in the Variable Properties window. |
|
Shows how to define a parameter (Val or Var) in the Variables Properties window. |
|
Explains the list order of parameters and variables in the Procedures window. Parameters are automatically listed before the local variables if both local variables and parameters are used. |
|
Shows a table listing the compatible variable data types used as parameters that are passed by Val and Var. |
|
Describes steps to take when you want a procedure to return a value. |
|
Shows how an example function procedure is used in the Code View. |
|
Explains how ATEasy searches for the procedure to locate where it is defined when a procedure name is called. |
|
Describes an example of a subroutine procedure with Var parameters that compares numbers, stores the result as a Var, and returns a value. |
|
Describes an example of a function procedure that calculates an average of numbers in an array and returns a value. |