Saturday, January 31, 2009

Contents of a Compiled Module

A compiled module,like a regular test you create in Test Script Language,can be opened,edited, and saved. you indicate that a test is a compiled moduleby clicking Compiled Module in the Test Type box in the Test Properties dialog box.

The content of a compiled module differs from that of an ordinary test,it cannot include checkpoints or any analog input such as mouse tracking.The purpose of a compiled module is not to perform a test,but to store functions you use most frequently so that they can be quickly and conveniently accessed from others tests.

Unlike an ordinary test,all data objects (variables,constants,arrays) in a compiled module must be declared before use. The structure of a compiled module is similar to a C Program file,in that it may contain the following elements:

a) Function definitions and declarations for variables,constants and arrays.
b) Prototypes of external functions.
c) Load statements to other modules.

Note that when user-defined functions appear in compiled modules:

a) A public function is available to all modules and test,while a static function is available only to the module within which it was defined.

b) The loaded module remains resident in memory even when test execution is aborted.However,all variables defined within the module (whether static or public) are initialized.