Documentation produced with EMOS WrDoc and Together®

Package lib

Package: LIB This package contains all WinRunner libraries for this project.

See
          Description

Class Diagram Summary
lib 
 

Class Summary
AUT_libThis library contains application-specific routines such as synchronisation with status object or setting up the typical initial state (new order).
FRM_libThis library contains generic Framework-related functions.
 

Package lib Description

Package: LIB This package contains all WinRunner libraries for this project. A library or "compiled module" in WinRunner terminology is a particular kind of test script which contains functions that can be used from other scripts. EMOS Framework technique is based on the extensive use of libraries. For this reason it is important to control the growth of this directory for example by the conventions named below.

Directory Structure

Naming conventions

Remember 1) WinRunner allows you to load functions with same name (which hide each other) without issuing an error or even a warning. This can cause very strange surprises that may cost you days to debug. The best "medicine" in avoiding naming collisions in WinRunner is by the means of name spaces (i.e. distinct name prefixes). Since WinRunner does not have such a concept built in we must aproach it with the discipline (i.e. naming convention). Our style is to give all public functions in a particular library the same prefix (e.g. ORA_ for Oracle specific functions) and repeat the same prefix in the name of the library itself. This will not only avoid name collisions but will also help you finding out where do the functions "come from" as you read or debug your code.

Remember 2) Neither WinRunner nor TestDirector help you distinguish between main tests and compiled modules (the same icon is shown for both, you have to look in the test properties to find out). Attaching "_lib" or some other naming convenction makes life a bit easier.

Other conventions

tor help you distinguish between main tests and compiled modules (the same icon is shown for both, you have to look in the test properties to find out). Attaching "_lib" or some other naming convenction makes life a bit easier.

Other conventions