About Creating Compiled Modules - WinRunner

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.

For instance, you can create a compiled module containing functions that:

  • compare the size of two files
  • check your system’s current memory resources

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. You can compile a module in one of two ways:

  • Run the module script using the WinRunner Run commands.
  • Load the module from a test script using the TSL load function.

If you need to debug a module or make changes, you can use the Step command to perform incremental compilation. You only need to run the part of the module that was changed in order to update the entire module.

You can add load statements to your startup test. This ensures that the functions in your compiled modules are automatically compiled each time you start WinRunner. See “Initializing Special Configurations,” for more information.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics