Does anyone know the clear differences and similarties between Test
scripts and Compiled modules?
To my knowledge
*I see the test scripts are not like libraries that they are always
memory resident (eventhough the test suite has aborted ) while
compiled modules are memory resident.
*Compiled modules have limitations that it can contains only extern
functions declarations, variable declarations and functions while
test scripts is much more liberal.
A little insight into the INTERPRETER LEVEL differences would be good
A compiled module is a script containing a library of user-defined functions that you want to call frequently from other tests. When you load a compiled module, its functions are automatically compiled and remain in memory.
You can call them directly from within any test.
Compiled modules can improve the organization and performance of your tests. Since you debug compiled modules before using them, your tests will require less error-checking. In addition, calling a function that is already compiled is significantly faster than interpreting a function in a test script.
Diff between Test Script and Compiled Module:
a)Test script contains the executable file in WinRunner while Compiled Module is used to store reusable functions. Complied modules are not executable.
b)WinRunner performs a pre-compilation automatically when it saves a module assigned a property value of “Compiled Module”.
c)By default, modules containing TSL code have a property value of "main". Main modules are called for execution from within other modules. Main modules are dynamically compiled into machine code only when WinRunner recognizes a "call" statement.