I am using Winrunner 9.20 and attempting to execute tests involving date change operations. I have a Function Library that is loaded upon Startup and it contains the following function: date_age_string( SysDate, chg_yr, chg_mon, chg_day, new_date ); however, when my automated test reaches the code that calls this function, I receive an error box stating "undefined function called: date_age_string". I also noticed that when I initially go into TOOLS-GENERAL OPTIONS-GENERAL and check the Enable Date Option, if I save this change then exit and restart Winrunner the settings revert back to a blank box. Can anyone advise as to what might be the cause of the "undefined function call"????? Many thanks.
I know that several versions earlier, WR did not enable date functions by default. And it appears from the checkbox you mention that this is still the case. But you say you check that checkbox and (a) is doesn't fix the problem and (b) the setting doesn't "stick?"
If so, then I think opening an SR with HP is called for.
THe only other thing I can add is to make sure the account you are using on the local box to perform the testing is set up as a local admin. This "might" prevent changes from happening and "sticking".
Also make sure you have permissions to edit the ini files and folders associated with WinRunner (included in the local admin settings, but a secondary check incase security/permissions have been set up for you incorrectly)
Insanity: doing the same thing over and over again and expecting different results