|
A Compiled Module is a script containing a library of user-defined funtions that you want to call from other scripts or test runs.When you load a compiled module , its functionas are automatically compiled and remain in memory.
Important note is that this script should be saved as compiled module in WinRunner.
1)You can declare public variables and these variables can be used any where in test where this compiled module has been called.
2)Create variables which has values of
use these variables in test scripts where ever you want.The main advantage using this method is when file somehow replaced different location in system , you don't need to change the file path in each script.
4)Create public Arrays so that these arrays can be called any script.
#********************************************************************** nospaces=a["total"];
Now date , time , year variable values can be used in any script to compare with other existed date fields for validation ( future date validation , past data validation , AM, PM validation )
| ||||||||||||||||||||||